Module: ActsAsPresentable::InstanceMethods::ClassMethods
- Defined in:
- lib/acts_as_presentable.rb
Instance Method Summary collapse
Instance Method Details
#as_json(options = {}) ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/acts_as_presentable.rb', line 32 def as_json(={}) if && .has_key?(presenter_key) [presenter_key].new(self).as_json() else presenter_class.new(self).as_json() end end |