Sha256: 1f07416db23f7a59c214b97f9916830d0ccfd14fac9fb06575390f0c86080e2b
Contents?: true
Size: 694 Bytes
Versions: 3
Compression:
Stored size: 694 Bytes
Contents
require 'hat_trick/step' require 'hat_trick/wizard_steps' require 'hat_trick/wizard' module HatTrick class WizardDefinition include WizardSteps attr_reader :config attr_accessor :before_callback_for_all_steps, :after_callback_for_all_steps def initialize(config) @config = config @steps = [] end def make_wizard_for(controller) Rails.logger.debug "Making new wizard instance" wizard = HatTrick::Wizard.new(self) wizard.controller = controller wizard.alias_action_methods wizard end def configured_create_url config.create_url end def configured_update_url config.update_url end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hat-trick-0.4.0 | lib/hat_trick/wizard_definition.rb |
hat-trick-0.3.0 | lib/hat_trick/wizard_definition.rb |
hat-trick-0.2.2 | lib/hat_trick/wizard_definition.rb |