reduce some lasigns

This commit is contained in:
Aaron Patterson
2011-01-14 14:30:47 -08:00
parent 2947197421
commit ef4ffed660

View File

@@ -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