add Active Record scope only if scope option is passed

Use scope option to specify Active Record scope name.