Sha256: b2732a39fdd482c1a26eb6406fb8b00ca1fa4a409763284886c687adaabcd673

Contents?: true

Size: 715 Bytes

Versions: 3

Compression:

Stored size: 715 Bytes

Contents

module SharingTags
  class Railtie < Rails::Railtie

    # config.eager_load_namespaces << SharingTags

    generators do
      require "generators/sharing_tags/install/install_generator"
    end

    # rake_tasks do
    #   load "rspec/rails/tasks/rspec.rake"
    # end

    initializer "sharing_tags.configure_view_controller" do |app|
      ActiveSupport.on_load :action_view do
        include SharingTags::ActionView::Helpers
      end

      ActiveSupport.on_load :action_controller do
        include SharingTags::ActionController::Helpers
        include SharingTags::ActionController::Filters

        # todo add filter for clear context
        # append_filter :clear_context!
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sharing_tags-0.0.4 lib/sharing_tags/railtie.rb
sharing_tags-0.0.3 lib/sharing_tags/railtie.rb
sharing_tags-0.0.2 lib/sharing_tags/railtie.rb