Sha256: b7c4ed235f390b8a2f9e9cf6e41b70955a675c95686d7fbca060236d782136b1

Contents?: true

Size: 565 Bytes

Versions: 1

Compression:

Stored size: 565 Bytes

Contents

require 'httparty'
require "moshimoshi-rails-helper/helper"
require "moshimoshi-rails-helper/version"

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
moshimoshi-rails-helper-0.0.1 lib/moshimoshi-rails-helper.rb