Permalink
Browse files

Removed some un-needed var passing.

  • Loading branch information...
1 parent 43e8c16 commit 99e890f37ca3316fe3a4a48baa20f040fba3b941 @metaskills committed Dec 7, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/grouped_scope/arish/associations/builder/grouped_association.rb
View
4 lib/grouped_scope/arish/associations/builder/grouped_association.rb
@@ -22,14 +22,14 @@ def build
model.send(ungrouped_reflection.macro, grouped_name, grouped_options).tap do |grouped_reflection|
grouped_reflection.grouped_scope = true
model.grouped_reflections = model.grouped_reflections.merge(ungrouped_name => grouped_reflection)
- define_grouped_scope_reader(model)
+ define_grouped_scope_reader
end
end
private
- def define_grouped_scope_reader(model)
+ def define_grouped_scope_reader
model.send(:define_method, :group) do
@group ||= GroupedScope::SelfGroupping.new(self)
end

0 comments on commit 99e890f

Please sign in to comment.