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