Module: Easy::Api::ControllerMethods
- Defined in:
- lib/easy/api/controller_methods.rb
Overview
Include this module in all API controllers to get consistent responses
Defined Under Namespace
Modules: InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
36 37 38 39 40 41 |
# File 'lib/easy/api/controller_methods.rb', line 36 def self.included(base) base.send :include, InstanceMethods # ensure setup_result happens before any other before_filters base.prepend_before_filter :setup_result end |