Class: ActiveNode::Base
- Inherits:
-
Object
- Object
- ActiveNode::Base
- Includes:
- ActiveAttr::Model, Associations, Callbacks, Core, Persistence, Reflection, Validations
- Defined in:
- lib/active_node/base.rb
Constant Summary
Constants included from Callbacks
Instance Attribute Summary
Attributes included from Associations
Class Method Summary collapse
Methods included from Core
Methods included from Associations
#association, #clear_association_cache
Methods included from Callbacks
Methods included from Validations
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 |