Skip to content

Commit

Permalink
Removed some un-needed var passing.
Browse files Browse the repository at this point in the history
  • Loading branch information
metaskills committed Dec 7, 2011
1 parent 43e8c16 commit 99e890f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 99e890f

Please sign in to comment.