Module: MetaTags::Controller::ClassMethods
- Defined in:
- lib/meta_tags/controller.rb
Instance Attribute Summary collapse
-
#meta_tags ⇒ Object
Returns the value of attribute meta_tags.
-
#model_name ⇒ Object
Returns the value of attribute model_name.
-
#modifier_block ⇒ Object
Returns the value of attribute modifier_block.
Instance Method Summary collapse
Instance Attribute Details
#meta_tags ⇒ Object
Returns the value of attribute meta_tags.
7 8 9 |
# File 'lib/meta_tags/controller.rb', line 7 def @meta_tags end |
#model_name ⇒ Object
Returns the value of attribute model_name.
7 8 9 |
# File 'lib/meta_tags/controller.rb', line 7 def model_name @model_name end |
#modifier_block ⇒ Object
Returns the value of attribute modifier_block.
7 8 9 |
# File 'lib/meta_tags/controller.rb', line 7 def modifier_block @modifier_block end |
Instance Method Details
#meta_tags_defaults(options) ⇒ Object
9 10 11 |
# File 'lib/meta_tags/controller.rb', line 9 def () @meta_tags = Container.new() end |
#meta_tags_from(model_name = nil, &block) ⇒ Object
13 14 15 16 |
# File 'lib/meta_tags/controller.rb', line 13 def (model_name = nil, &block) @model_name = model_name && model_name.to_s @modifier_block = block_given? ? block : nil end |