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