Skip to content

Commit

Permalink
Rails 3 routes support
Browse files Browse the repository at this point in the history
  • Loading branch information
maccman committed Sep 9, 2010
1 parent ebcb48e commit 3454811
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/supermodel/base.rb
Expand Up @@ -186,8 +186,10 @@ def save!
def exists?
!new?
end
alias_method :persisted?, :exists?

def load(attributes) #:nodoc:
return unless attributes
attributes.each do |(name, value)|
self.send("#{name}=".to_sym, value)
end
Expand Down

0 comments on commit 3454811

Please sign in to comment.