Class: ActiveNode::Base
- Inherits:
-
Object
- Object
- ActiveNode::Base
- Includes:
- ActiveAttr::AttributeDefaults, ActiveAttr::Attributes, ActiveAttr::BasicModel, ActiveAttr::MassAssignment, ActiveAttr::TypecastedAttributes, ActiveModel::Serializers::JSON, Associations, Callbacks, Core, Dirty, Persistence, Reflection, Typecasting, Validations
- Defined in:
- lib/active_node/base.rb
Constant Summary
Constants included from Callbacks
Constants included from Typecasting
Typecasting::EXTENDED_TYPECASTER_MAP
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?, #includes!, #incoming, #initialize, #neo_id, #new_record?, #outgoing, #persisted?, #save, #to_param, #update_attribute, #update_attributes
Methods included from Dirty
Methods included from Typecasting
Class Method Details
.subclass(klass_name) ⇒ Object
21 22 23 |
# File 'lib/active_node/base.rb', line 21 def self.subclass(klass_name) Class.new(super_class=self) { define_singleton_method(:label) { klass_name } } end |