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

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