Skip to content

Commit

Permalink
added a more consistent DSL
Browse files Browse the repository at this point in the history
  • Loading branch information
obi-a committed May 5, 2012
1 parent a1479aa commit d984856
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/lean_model/base.rb
Expand Up @@ -79,6 +79,10 @@ def save
end
end

def service
self
end

def update_attributes(hash)
#update this model on database
if self.valid?
Expand Down

0 comments on commit d984856

Please sign in to comment.