Module: LoyalCore::ActionController::SeoMethods::InstanceMethods
- Defined in:
- lib/loyal_core/action_controller/seo_methods.rb
Instance Method Summary collapse
- #page_description_set(description = nil, &block) ⇒ Object
- #page_keywords_set(keywords = nil, &block) ⇒ Object
- #page_title_set(title = nil, &block) ⇒ Object
Instance Method Details
#page_description_set(description = nil, &block) ⇒ Object
36 37 38 39 40 41 42 |
# File 'lib/loyal_core/action_controller/seo_methods.rb', line 36 def page_description_set description=nil, &block if block_given? (@__loyal_core_page_info ||= {})[:description] = block.call else (@__loyal_core_page_info ||= {})[:description] = description end end |
#page_keywords_set(keywords = nil, &block) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/loyal_core/action_controller/seo_methods.rb', line 28 def page_keywords_set keywords=nil, &block if block_given? (@__loyal_core_page_info ||= {})[:keywords] = block.call else (@__loyal_core_page_info ||= {})[:keywords] = keywords end end |
#page_title_set(title = nil, &block) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/loyal_core/action_controller/seo_methods.rb', line 20 def page_title_set title=nil, &block if block_given? (@__loyal_core_page_info ||= {})[:title] = block.call else (@__loyal_core_page_info ||= {})[:title] = title end end |