Module: Faceted::Presenter

Includes:
HasObject
Defined in:
lib/faceted/presenter.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

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
16
# File 'lib/faceted/presenter.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)
  base.send(:attr_accessor, :success)
end