Sha256: 24c7d624cad528942e3e3c88daedca357febd720748fe8794e17db6c52d5af75

Contents?: true

Size: 471 Bytes

Versions: 3

Compression:

Stored size: 471 Bytes

Contents

require 'crummy'
require 'rails'

module Crummy
  class Railtie < Rails::Railtie
    initializer "crummy.action_controller" do |app|
      ActiveSupport.on_load :action_controller do
        require 'crummy/action_controller'
	include Crummy::ControllerMethods
      end
    end

    initializer "crummy.action_view" do |app|
      ActiveSupport.on_load :action_view do
        require 'crummy/action_view'
        include Crummy::ViewMethods
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vinted-crummy-1.11.0 lib/crummy/railtie.rb
vinted-crummy-1.10.0 lib/crummy/railtie.rb
vinted-crummy-1.9.0 lib/crummy/railtie.rb