Module: Wizardly::ActionController

Defined in:
lib/wizardly.rb,
lib/wizardly/action_controller.rb

Defined Under Namespace

Modules: ClassMethods, MacroMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/wizardly/action_controller.rb', line 5

def self.included(base)
  base.extend(ClassMethods)
  
  base.class_eval do
    before_filter :guard_entry
    class << self
      attr_reader :wizard_config #note: reader for @wizard_config on the class (not the instance)
    end
    hide_action :reset_wizard_session_vars, :wizard_config, :methodize_button_name
  end
end

Instance Method Details

#wizard_configObject



33
# File 'lib/wizardly/action_controller.rb', line 33

def wizard_config; self.class.wizard_config; end