This project is archived and is in readonly mode.
Change :select precedence in construct_finder_sql to favor options[:select]
-
Pratik
- Title changed from [Patch] Change :select precedence in construct_finder_sql to favor options[:select] to Change :select precedence in construct_finder_sql to favor options[:select]
-
Pratik
- State changed from new to incomplete
- Assigned user set to Pratik
Looks good.
Could you please change tests to check both :
1) Query fired ( as you've already done )
2) Assert result of a find. For example Developer.find(:all, :select => 'developers.not_in_scope')
Thanks.
-
Andrew White
Okay I've modified the patch to check both the sql generated and whether attributes are/are not present in the attributes hash after doing a find.
-
Pratik
- State changed from incomplete to open
-
Repository
- State changed from open to resolved
(from [235d635708dd72bee0828457af5397c79750483a]) Ensure :select passed in options overrides the one from the scope. [#239 state:resolved]
Signed-off-by: Pratik Naik
