Sha256: fb3394528e963cc4ebe6297d6708106c87fa5e7176e3f2db50e1367b238156a3
Contents?: true
Size: 712 Bytes
Versions: 1
Compression:
Stored size: 712 Bytes
Contents
# frozen_string_literal: true require_dependency 'solidus_seo/jsonld/tag_helper' module SolidusSeo class Engine < Rails::Engine require 'spree/core' isolate_namespace Spree engine_name 'solidus_seo' include ::SolidusSupport::EngineExtensions # use rspec for tests config.generators do |g| g.test_framework :rspec end def self.activate end initializer "solidus_seo.view_helpers" do ActiveSupport.on_load(:action_view) do ActionView::Base.send :include, ::SolidusSeo::Jsonld::TagHelper end end config.before_initialize do end config.after_initialize do end config.to_prepare(&method(:activate).to_proc) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_seo-1.0.7 | lib/solidus_seo/engine.rb |