Class: AlterAdmin::ValueDecorator

Inherits:
Object
  • Object
show all
Defined in:
lib/alter_admin/value_decorator.rb

Class Method Summary collapse

Class Method Details

.render(model, attribute, info) ⇒ Object



4
5
6
# File 'lib/alter_admin/value_decorator.rb', line 4

def self.render(model, attribute, info)
  info.has_key?(:value) ? call_value(model, attribute, info) : send_attribute(model, attribute)
end