Module: ControllerHelper::ClassMethods

Defined in:
lib/users/controller_helper.rb

Instance Method Summary collapse

Instance Method Details

#active_menu(opt = {}, &block) ⇒ Object



18
19
20
21
22
# File 'lib/users/controller_helper.rb', line 18

def active_menu opt = {}, &block
  before opt do |controller|
    controller.instance_variable_set "@active_menu", controller.instance_eval(&block)
  end
end


12
13
14
15
16
# File 'lib/users/controller_helper.rb', line 12

def breadcrumb opt = {}, &block
  before opt do |controller|
    controller.instance_variable_set "@breadcrumb", controller.instance_eval(&block)
  end
end

#logo(opt = {}, &block) ⇒ Object

Navigation



6
7
8
9
10
# File 'lib/users/controller_helper.rb', line 6

def  opt = {}, &block
  before opt do |controller|
    controller.instance_variable_set "@logo", controller.instance_eval(&block)
  end
end