Sha256: 106aa0e485c64c8e6bf1509e92ca417689884defafd238bb0acaa0624d54f6d2

Contents?: true

Size: 511 Bytes

Versions: 2

Compression:

Stored size: 511 Bytes

Contents

require "smart-app-banner/helper"
require "smart-app-banner/version"

module Rails
  module SmartAppBanner
    if defined?(::Rails::Engine)
      class Engine < ::Rails::Engine
        initializer 'smart-app-banner', group: :all do |app|
          ActiveSupport.on_load(:action_controller) do
            include Rails::SmartAppBanner::Helper
          end

          ActiveSupport.on_load(:action_view) do
            include Rails::SmartAppBanner::Helper
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
smart-app-banner-0.0.2 lib/smart-app-banner.rb
smart-app-banner-0.0.1 lib/smart-app-banner.rb