Module: Phaseout
- Defined in:
- lib/phaseout.rb,
lib/phaseout/seo.rb,
lib/phaseout/engine.rb,
lib/phaseout/handler.rb,
lib/phaseout/version.rb,
lib/phaseout/seo_action.rb,
lib/phaseout/seo_fields.rb,
lib/phaseout/seo_helper.rb,
app/controllers/phaseout/phaseout_controller.rb,
app/controllers/phaseout/application_controller.rb
Defined Under Namespace
Modules: SEO, SEOHelper
Classes: ApplicationController, Engine, Handler, PhaseoutController, SEOAction, SEOFields
Constant Summary
collapse
- VERSION =
'0.0.3'
Class Method Summary
collapse
Class Method Details
.config_redis(connection, namespace = :phaseout) ⇒ Object
13
14
15
|
# File 'lib/phaseout.rb', line 13
def self.config_redis(connection, namespace = :phaseout)
@redis = Redis::Namespace.new namespace, redis: connection
end
|
.default_fields ⇒ Object
21
22
23
|
# File 'lib/phaseout.rb', line 21
def self.default_fields
@default_fields ||= ::Phaseout::SEOHelper.instance_methods + [:other]
end
|
.redis ⇒ Object
17
18
19
|
# File 'lib/phaseout.rb', line 17
def self.redis
@redis ||= config_redis(Redis.new)
end
|