Method: Confection::Current#controller
- Defined in:
- lib/confection/current.rb
#controller(scope, tool, *options) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/confection/current.rb', line 15 def controller(scope, tool, *) params = (Hash === .last ? .pop : {}) params[:profile] = .shift unless .empty? if from = params[:from] projects[from] ||= Project.load(from) projects[from].controller(scope, tool, params) else bootstrap if $properties.nil? # TODO: better way to go about this? current_project.controller(scope, tool, params) end end |