Module: Faceted::Interface
- Includes:
- HasObject
- Defined in:
- lib/faceted/interface.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
Class methods ===========================================================.
Methods included from HasObject
#delete, #excludes, #excludes=, #initialize, #reinitialize_with_object, #save, #schema_fields, #to_hash
Class Method Details
.included(base) ⇒ Object
Class methods ===========================================================
9 10 11 12 13 14 15 |
# File 'lib/faceted/interface.rb', line 9 def self.included(base) base.extend ActiveModel::Naming base.extend ClassMethods base.extend Faceted::Model::ModelClassMethods base.send(:attr_accessor, :id) base.send(:attr_accessor, :errors) end |