Module: Analytical::InstanceMethods
- Defined in:
- lib/analytical.rb
Instance Method Summary collapse
-
#analytical ⇒ Object
any method placed here will apply to instances.
Instance Method Details
#analytical ⇒ Object
any method placed here will apply to instances
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/analytical.rb', line 35 def analytical @analytical ||= begin = self.class..merge({ :ssl => request.ssl? }) if [:disable_if].call(self) [:modules] = [:development_modules] end [:session] = session if [:use_session_store] if analytical_is_robot?(request.user_agent) [:modules] = [] end Analytical::Api.new end end |