Sha256: 964b68b0740555b1a9507b3b6603507ae007621dac7bc374ae89cacba6b7eb6e
Contents?: true
Size: 407 Bytes
Versions: 2
Compression:
Stored size: 407 Bytes
Contents
module CanTango class Config class Helpers include Singleton def enable *names names = names.to_symbols enable_rest if names.include? :rest end def enable_rest raise 'ApplicationController not defined' if !defined?(::ApplicationController) ::ApplicationController.send :include, CanTango::Rails::Helpers::RestHelper end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cantango-config-0.2.1 | lib/cantango/config/helpers.rb |
cantango-config-0.2.0 | lib/cantango/config/helpers.rb |