Class: Bread::Manager::Actions
- Inherits:
-
Object
- Object
- Bread::Manager::Actions
show all
- Defined in:
- lib/bread/manager/actions.rb,
lib/bread/manager/actions/top_scope.rb,
lib/bread/manager/actions/action_scope.rb,
lib/bread/manager/actions/controller_scope.rb
Defined Under Namespace
Classes: ActionScope, ControllerScope, TopScope
Instance Method Summary
collapse
Instance Method Details
#config(&block) ⇒ Object
5
6
7
8
|
# File 'lib/bread/manager/actions.rb', line 5
def config(&block)
@top_scope = TopScope.new
@top_scope.instance_eval(&block)
end
|
#get_crumbset(controller_path, action_name) ⇒ Object
10
11
12
13
|
# File 'lib/bread/manager/actions.rb', line 10
def get_crumbset(controller_path, action_name)
reload
@top_scope.get_controller_scope(controller_path).get_crumbset(action_name)
end
|