Sha256: 72ddba89e89ac8e8a39f764ce441403d67a77e5c779dce46bd1566d9a1ed05a9

Contents?: true

Size: 494 Bytes

Versions: 3

Compression:

Stored size: 494 Bytes

Contents

require 'hat_trick/step'
require 'hat_trick/wizard_steps'
require 'hat_trick/wizard'

module HatTrick
  class WizardDefinition
    include WizardSteps

    attr_accessor :configured_create_url, :configured_update_url

    def initialize
      @steps = []
    end

    def get_wizard(controller)
      controller.send(:ht_wizard) or (
        wizard = HatTrick::Wizard.new(self)
        wizard.controller = controller
        wizard.alias_action_methods
        wizard
      )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hat-trick-0.1.2 lib/hat_trick/wizard_definition.rb
hat-trick-0.1.1 lib/hat_trick/wizard_definition.rb
hat-trick-0.1.0 lib/hat_trick/wizard_definition.rb