Module: VirtualAttributes::Base::Defaults
- Extended by:
- ActiveSupport::Concern
- Included in:
- VirtualAttributes::Base
- Defined in:
- lib/virtual-attributes/base/defaults.rb
Instance Method Summary collapse
Instance Method Details
#read_attribute(column) ⇒ Object
5 6 7 8 |
# File 'lib/virtual-attributes/base/defaults.rb', line 5 def read_attribute(column) val = super val.nil? ? default_value(column) : val end |