Class: RiddlerAdmin::Steps::Variant

Inherits:
RiddlerAdmin::Step show all
Defined in:
app/models/riddler_admin/steps/variant.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_nameObject



8
9
10
# File 'app/models/riddler_admin/steps/variant.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/variant.rb', line 12

def definition_hash options=nil
  hash = super
  hash["steps"] = steps.map { |s| s.definition_hash }
  hash
end