Class: CanTango::Config::Helpers
- Inherits:
-
Object
- Object
- CanTango::Config::Helpers
- Includes:
- Singleton
- Defined in:
- lib/cantango/config/helpers.rb
Instance Method Summary collapse
Instance Method Details
#enable(*names) ⇒ Object
6 7 8 9 |
# File 'lib/cantango/config/helpers.rb', line 6 def enable *names names = names.to_symbols enable_rest if names.include? :rest end |
#enable_rest ⇒ Object
11 12 13 14 |
# File 'lib/cantango/config/helpers.rb', line 11 def enable_rest raise 'ApplicationController not defined' if !defined?(::ApplicationController) ::ApplicationController.send :include, CanTango::Rails::Helpers::RestHelper end |