Class: SeoSensei::Lookups::TranslationAttributes
- Inherits:
-
Object
- Object
- SeoSensei::Lookups::TranslationAttributes
- Defined in:
- lib/seo_sensei/lookups/translation_attributes.rb
Class Method Summary collapse
Class Method Details
.for(resource) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/seo_sensei/lookups/translation_attributes.rb', line 4 def self.for(resource) if resource.respond_to?(:attributes) resource.attributes elsif resource.is_a?(Hash) resource else {} end end |