class Angular::Html2js::Configuration
Attributes
module_name[RW]
Public Instance Methods
cache_id(&block)
click to toggle source
# File lib/angular/html2js/configuration.rb, line 24 def cache_id(&block) if block @cache_id = block else @cache_id end end
init_sprockets()
click to toggle source
# File lib/angular/html2js/configuration.rb, line 41 def init_sprockets # hack around bug in rails assets debug mode # TODO: remove this once this bug is resolved: https://github.com/sstephenson/sprockets/issues/478 Sprockets.register_engine '.haml', Angular::Html2js::Haml Sprockets.register_engine '.ngt', Angular::Html2js::Engine end
method_missing(config_name, *)
click to toggle source
Calls superclass method
# File lib/angular/html2js/configuration.rb, line 36 def method_missing(config_name, *) puts "Sorry, there is no such configuration option named #{config_name}" super end
reset!()
click to toggle source
# File lib/angular/html2js/configuration.rb, line 32 def reset! @cache_id = @module_name = nil end