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.
9 10 11 12 |
# File 'lib/exvo_warez.rb', line 9 def initialize(app) @app = app apply_middlewares end |
Instance Method Details
#apply_middlewares ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/exvo_warez.rb', line 14 def apply_middlewares if env == "development" # end if env == "staging" apply_referral apply_useragent_filter apply_seo if ExvoAuth::Config.client_id end if env == "production" apply_referral apply_useragent_filter apply_seo if ExvoAuth::Config.client_id end end |
#call(env) ⇒ Object
33 34 35 |
# File 'lib/exvo_warez.rb', line 33 def call(env) @app.call(env) end |