Module: Paperlex::RootObject
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/paperlex/base/root_object.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#save!(fields = nil) ⇒ Object
23 24 25 26 27 |
# File 'lib/paperlex/base/root_object.rb', line 23 def save!(fields = nil) fields ||= self.class.update_fields self.class.put(self.class.url_for(uuid), short_name => Hash[fields.map {|field| [field, self[field]]}]) self end |