Module: Deployments::App::Routes::Extensions
- Defined in:
- lib/deployments-app/routes/extensions.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/deployments-app/routes/extensions.rb', line 5 def self.included(base) base.class_eval do def current_project @project ||= Project.first(:api_key => params[:api_key]) end end end |