Module: Archangel::Controllers::MetatagableConcern

Extended by:
ActiveSupport::Concern
Included in:
AuthController, BackendController, FrontendController
Defined in:
app/controllers/concerns/archangel/controllers/metatagable_concern.rb

Overview

Controller meta tag concern

Instance Method Summary collapse

Instance Method Details

#assign_meta_tags(meta_tags = {}) ⇒ Object

Set meta tags

Parameters:

  • meta_tags (Hash) (defaults to: {})

    list of meta tags


24
25
26
27
28
# File 'app/controllers/concerns/archangel/controllers/metatagable_concern.rb', line 24

def assign_meta_tags(meta_tags = {})
  meta = meta_tags.reject { |_name, value| value.blank? }

  set_meta_tags(meta)
end