Module: Ratel
- Defined in:
- lib/ratel.rb,
lib/ratel/config.rb,
lib/ratel/engine.rb,
lib/ratel/version.rb,
lib/ratel/tracking/google_analytics.rb,
lib/ratel/helper/action_view_extension.rb
Defined Under Namespace
Modules: ActionViewExtension, Tracking Classes: Configuration, Engine, Initializer
Constant Summary collapse
- VERSION =
"0.0.4"
Class Method Summary collapse
- .config ⇒ Object
-
.configure {|@config ||= Ratel::Configuration.new| ... } ⇒ Object
Configures global settings for Ratel Ratel.configure do |config| config.tracking = :google_analytics end.
Class Method Details
.config ⇒ Object
12 13 14 |
# File 'lib/ratel/config.rb', line 12 def self.config @config end |
.configure {|@config ||= Ratel::Configuration.new| ... } ⇒ Object
Configures global settings for Ratel
Ratel.configure do |config|
config.tracking = :google_analytics
end
8 9 10 |
# File 'lib/ratel/config.rb', line 8 def self.configure(&block) yield @config ||= Ratel::Configuration.new end |