Module: Concerns::Seo
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/seo.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#seo(locale = I18n.locale) ⇒ Object
41 42 43 44 45 46 47 |
# File 'app/models/concerns/seo.rb', line 41 def seo(locale = I18n.locale) @seo_collections = {} unless @seo_collections return @seo_collections[locale.to_sym] if @seo_collections[locale.to_sym] = .find_by(locale: locale) @seo_collections[locale.to_sym] = ? : .new(locale: locale) end |