Module: Lycra::Decorator

Defined in:
lib/lycra/decorator.rb,
lib/lycra/decorator/model.rb

Defined Under Namespace

Modules: Model

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
# File 'lib/lycra/decorator.rb', line 3

def self.included(base)
  base.send :include, Attributes
  base.send :extend,  Inheritance
end

Instance Method Details

#as_json(options = {}) ⇒ Object



8
9
10
# File 'lib/lycra/decorator.rb', line 8

def as_json(options={})
  resolve!(subject).as_json(options)
end