Sha256: 0c54a971ff3af856a9377a0f5473064971e2254e0db5f77bc16756f8960e8a70
Contents?: true
Size: 917 Bytes
Versions: 1
Compression:
Stored size: 917 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::MetaHelper include SharingTags::ActionView::ButtonHelper # @note: load AssetHelper after sprockets helper include Sprockets::Rails::Helper if defined?(Sprockets::Rails::Helper) && !include?(Sprockets::Rails::Helper) include SharingTags::ActionView::AssetHelper end ActiveSupport.on_load :action_controller do include SharingTags::ActionController::Helpers include SharingTags::ActionController::Filters end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sharing_tags-0.0.9 | lib/sharing_tags/railtie.rb |