Module: Cms::Behaviors::Readonly::MacroMethods
- Defined in:
- lib/cms/behaviors/readonly.rb
Instance Method Summary collapse
Instance Method Details
#is_readonly(_options = {}) ⇒ Object
11 12 13 14 |
# File 'lib/cms/behaviors/readonly.rb', line 11 def is_readonly(={}) @is_readonly = true include InstanceMethods end |
#readonly? ⇒ Boolean
8 9 10 |
# File 'lib/cms/behaviors/readonly.rb', line 8 def readonly? !!@is_readonly end |