Skip to content
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
saks authored and saberma committed Aug 11, 2010
1 parent 76dcfbe commit febc518
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/mongoid_acts_as_tree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +204,11 @@ def <<(object, will_save=true)
super(object)
end

def build(attributes)
child = @parent.class.new(attributes)
self.push child
child
end
def build(attributes)
child = @parent.class.new(attributes)
self.push child
child
end

alias create build

Expand Down

0 comments on commit febc518

Please sign in to comment.