mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
reduce some lasigns
This commit is contained in:
@@ -185,9 +185,8 @@ module ActiveRecord
|
||||
scope = target_klass.unscoped
|
||||
scope = scope.create_with(creation_attributes)
|
||||
scope = scope.apply_finder_options(@reflection.options.slice(:conditions, :readonly, :include))
|
||||
scope = scope.where(construct_owner_conditions)
|
||||
scope = scope.select(select_value) if select_value = self.select_value
|
||||
scope
|
||||
scope.where(construct_owner_conditions)
|
||||
end
|
||||
|
||||
def select_value
|
||||
|
||||
Reference in New Issue
Block a user