Class: RiddlerAdmin::Steps::Content
- Inherits:
-
RiddlerAdmin::Step
- Object
- ActiveRecord::Base
- ApplicationRecord
- RiddlerAdmin::Step
- RiddlerAdmin::Steps::Content
- Defined in:
- app/models/riddler_admin/steps/content.rb
Constant Summary
Constants inherited from RiddlerAdmin::Step
RiddlerAdmin::Step::ID_LENGTH, RiddlerAdmin::Step::MODEL_KEY
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from RiddlerAdmin::Step
available_classes, #content_id, #content_type, default_class, #excluded_attrs, #object, #published?, #serializable_hash_options, #short_name, short_name, #to_partial_path
Class Method Details
.model_name ⇒ Object
8 9 10 |
# File 'app/models/riddler_admin/steps/content.rb', line 8 def self.model_name Step.model_name end |
Instance Method Details
#definition_hash(options = nil) ⇒ Object
12 13 14 15 16 |
# File 'app/models/riddler_admin/steps/content.rb', line 12 def definition_hash =nil hash = super hash["elements"] = elements.map { |e| e.definition_hash } hash end |