Module: Rails::Surrender::ModelAdditions

Defined in:
lib/rails/surrender/model_additions.rb

Overview

Aad methods to the model class to describe how the model renders.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/rails/surrender/model_additions.rb', line 7

def self.included(base)
  attr_accessor :surrender_attributes
  attr_accessor :surrender_expands
  attr_accessor :surrender_available_attributes
  attr_accessor :surrender_available_expands

  base.extend(ClassMethods)
end