Module: Reform::Contract::Readonly
- Included in:
- Reform::Contract
- Defined in:
- lib/reform/contract.rb
Instance Method Summary collapse
Instance Method Details
#options_for(name) ⇒ Object
199 200 201 |
# File 'lib/reform/contract.rb', line 199 def (name) self.class.representer_class.representable_attrs.get(name) end |
#readonly?(name) ⇒ Boolean
195 196 197 |
# File 'lib/reform/contract.rb', line 195 def readonly?(name) (name)[:writeable] == false end |