Sha256: 8bbf08f063fbdbacf2e4e39bbafbfd30b472cb575f5c69d9c6bdd366f53bc48a

Contents?: true

Size: 449 Bytes

Versions: 6

Compression:

Stored size: 449 Bytes

Contents

require "happy_place/controller"

module HappyPlace
  class Railtie < Rails::Railtie
    initializer "your_gem_name.action_controller" do
      ActiveSupport.on_load(:action_controller) do
        puts "Extending #{self} with YourGemsModuleName::Controller"
        # ActionController::Base gets a method that allows controllers to include the new behavior
        include HappyPlace::Controller # ActiveSupport::Concern
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
happy_place-0.0.6 lib/happy_place/railtie.rb
happy_place-0.0.5 lib/happy_place/railtie.rb
happy_place-0.0.4 lib/happy_place/railtie.rb
happy_place-0.0.3 lib/happy_place/railtie.rb
happy_place-0.0.2 lib/happy_place/railtie.rb
happy_place-0.0.1 lib/happy_place/railtie.rb