Class: MotionPrime::Model

Inherits:
NSFNanoObject
  • Object
show all
Includes:
HasAuthorization, HasNormalizer, ModelAssociationMixin, ModelBaseMixin, ModelDirtyMixin, ModelFinderMixin, ModelSyncMixin
Defined in:
motion-prime/models/model.rb

Instance Method Summary collapse

Methods included from ModelDirtyMixin

#has_changed?, included, #track_changed_attributes

Methods included from ModelSyncMixin

#association_sync_url, #associations, #associations_to_fetch, #attributes_to_post_data, #destroy, #fetch, #fetch!, #fetch_association, #fetch_association?, #fetch_association_with_attributes, #fetch_associations, #fetch_has_many, #fetch_has_many_with_attributes, #fetch_has_one, #fetch_has_one_with_attributes, #fetch_with_attributes, #fetch_with_url, #filtered_updatable_attributes, #has_association?, #has_associations_to_fetch?, included, #normalize_sync_url, #set_attributes_from_response, #sync_url, #update, #update!, #update_with_url

Methods included from ModelAssociationMixin

#_bags, #save

Methods included from ModelBaseMixin

#assign_attribute, #assign_attributes, #attributes_hash, #delete, #has_attribute?, included, #inspect, #model_name, #new_record?, #persisted?, #save, #store

Methods included from HasNormalizer

#normalize_object, #normalize_options

Methods included from HasAuthorization

#api_client, #current_user, #reset_current_user, #user_signed_in?

Instance Method Details

#deallocObject



27
28
29
30
# File 'motion-prime/models/model.rb', line 27

def dealloc
  Prime.logger.dealloc_message :model, self
  super
end

#errorsObject



23
24
25
# File 'motion-prime/models/model.rb', line 23

def errors
  @errors ||= Errors.new(self.weak_ref)
end