Class: ActiveNode::Base

Inherits:
Object
  • Object
show all
Includes:
ActiveAttr::Model, Associations, Callbacks, Core, Persistence, Reflection, Validations
Defined in:
lib/active_node/base.rb

Constant Summary

Constants included from Callbacks

Callbacks::CALLBACKS

Instance Attribute Summary

Attributes included from Associations

#association_cache

Class Method Summary collapse

Methods included from Core

#initialize

Methods included from Associations

#association, #clear_association_cache

Methods included from Callbacks

#destroy, #touch

Methods included from Validations

#save, #save!, #valid?

Methods included from Persistence

#[], #[]=, #destroy, #destroy!, #destroyed?, #incoming, #initialize, #neo_id, #new_record?, #outgoing, #persisted?, #relationships, #save, #to_param

Class Method Details

.subclass(klass_name) ⇒ Object



14
15
16
# File 'lib/active_node/base.rb', line 14

def self.subclass(klass_name)
  Class.new(super_class=self) { define_singleton_method(:label) { klass_name } }
end