Sha256: 35c3d1f9657656e197e4e7acb75f0b5d934af33ae7481da4519f137f2b5f929e

Contents?: true

Size: 278 Bytes

Versions: 4

Compression:

Stored size: 278 Bytes

Contents

module Weeler
  module SectionSeo
    extend ActiveSupport::Concern

    included do
      before_action :initialize_seo_for_section
    end

  private
    
    def initialize_seo_for_section
      @seo = Weeler::Seo.find_or_create_by section: controller_name
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
weeler-2.1.0 app/controllers/concerns/weeler/section_seo.rb
weeler-2.0.1 app/controllers/concerns/weeler/section_seo.rb
weeler-2.0.0 app/controllers/concerns/weeler/section_seo.rb
weeler-1.6.0 app/controllers/concerns/weeler/section_seo.rb