Guest User

Untitled

a guest
Nov 18th, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.36 KB | None | 0 0
  1.  
  2.     # Updates attributes and saves this Resource instance
  3.     #
  4.     # @param [Hash] attributes
  5.     #   attributes to be updated
  6.     #
  7.     # @return [Boolean]
  8.     #   true if resource and storage state match
  9.     #
  10.     # @api public
  11.     def update(attributes)
  12.       assert_update_clean_only(:update)
  13.       self.attributes = attributes
  14.       save
  15.     end
Advertisement
Add Comment
Please, Sign In to add comment