Class: Rack::ExvoWarez
- Inherits:
-
Object
- Object
- Rack::ExvoWarez
- Defined in:
- lib/exvo_warez.rb,
lib/rack/exvo/seo.rb
Defined Under Namespace
Classes: Seo
Instance Method Summary collapse
- #apply_middlewares ⇒ Object
- #call(env) ⇒ Object
-
#initialize(app) ⇒ ExvoWarez
constructor
A new instance of ExvoWarez.
Constructor Details
#initialize(app) ⇒ ExvoWarez
Returns a new instance of ExvoWarez.
10 11 12 13 |
# File 'lib/exvo_warez.rb', line 10 def initialize(app) @app = app apply_middlewares end |
Instance Method Details
#apply_middlewares ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/exvo_warez.rb', line 15 def apply_middlewares unless env == "development" apply_referral apply_useragent_filter end if env == "production" apply_analytics end if ExvoAuth::Config.client_id apply_seo end end |
#call(env) ⇒ Object
30 31 32 |
# File 'lib/exvo_warez.rb', line 30 def call(env) @app.call(env) end |