Class: Bread::Manager::Actions::ActionScope

Inherits:
Object
  • Object
show all
Defined in:
lib/bread/manager/actions/action_scope.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(controller_scope, action_name) ⇒ ActionScope

Returns a new instance of ActionScope.



8
9
10
11
12
13
# File 'lib/bread/manager/actions/action_scope.rb', line 8

def initialize(controller_scope, action_name)
  @controller_scope = controller_scope
  @action_name = action_name
  @crumbset = []
  prepend_parent_crumbs
end

Instance Attribute Details

#crumbsetObject (readonly)

Returns the value of attribute crumbset.



6
7
8
# File 'lib/bread/manager/actions/action_scope.rb', line 6

def crumbset
  @crumbset
end

Instance Method Details

#crumbs(*symbols) ⇒ Object



15
16
17
# File 'lib/bread/manager/actions/action_scope.rb', line 15

def crumbs(*symbols)
  @crumbset += symbols.flatten
end