Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Updates attributes and saves this Resource instance
- #
- # @param [Hash] attributes
- # attributes to be updated
- #
- # @return [Boolean]
- # true if resource and storage state match
- #
- # @api public
- def update(attributes)
- assert_update_clean_only(:update)
- self.attributes = attributes
- save
- end
Advertisement
Add Comment
Please, Sign In to add comment