lib/analytical.rb in analytical-0.8.0 vs lib/analytical.rb in analytical-0.9.0
- old
+ new
@@ -6,11 +6,11 @@
# any method placed here will apply to ActionController::Base
def analytical(options={})
send :include, InstanceMethods
send :include, Analytical::BotDetector
- send :helper_method, :analytical
- send :cattr_accessor, :analytical_options
+ helper_method :analytical
+ class_inheritable_accessor :analytical_options
self.analytical_options = options.reverse_merge({
:modules=>[],
:development_modules=>[:console],
:disable_if=>Proc.new { !Rails.env.production? },
\ No newline at end of file