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
19 20 21 22 23 24 |
# File 'lib/easy/api/controller_methods.rb', line 19 def self.included(base) base.send :include, InstanceMethods # ensure setup_result happens before any other before_filters base.prepend_before_filter :setup_result end |