Module: RestPack::Web::Rails::Controller
- Defined in:
- lib/restpack-web/rails/controller.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 |
# File 'lib/restpack-web/rails/controller.rb', line 5 def self.included(base) base.send(:before_filter, :include_restpack) end |
Instance Method Details
#include_restpack ⇒ Object
9 10 11 |
# File 'lib/restpack-web/rails/controller.rb', line 9 def include_restpack @restpack = RestPack::Web::Context.new(request.env) end |