Module: Ecoportal::API::Common::Content::DoubleModel::Modifiers::Rootable::ClassMethods
- Defined in:
- lib/ecoportal/api/common/content/double_model/modifiers/rootable.rb
Instance Method Summary collapse
- #root! ⇒ Object
-
#root? ⇒ Boolean
Whether this is the top of the doc model and should not make its nested models read-only (rooted on their own).
Instance Method Details
#root! ⇒ Object
Note:
that this method stops the propagation of read_only!
Note:
that this method only affects the current model.
29 30 31 32 |
# File 'lib/ecoportal/api/common/content/double_model/modifiers/rootable.rb', line 29 def root! @start_root = false if @start_root.nil? @start_root = true end |
#root? ⇒ Boolean
23 24 25 |
# File 'lib/ecoportal/api/common/content/double_model/modifiers/rootable.rb', line 23 def root? @start_root end |