Sha256: cc3c9d832eff1e7ec4a982675b81ef7e9cff226b1e2e82c2da487b617d056127
Contents?: true
Size: 443 Bytes
Versions: 2
Compression:
Stored size: 443 Bytes
Contents
module Loaf if defined? Rails::Railtie class Railtie < Rails::Railtie initializer "loaf.extend_action_controller_base" do |app| ActiveSupport.on_load(:action_controller) do Loaf::Railtie.insert end end end end class Railtie def self.insert ActionController::Base.send :include, Loaf::Filters ActionController::Base.helper Loaf::Helpers end end # Railtie end # Loaf
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
loaf-0.1.1 | lib/loaf/railtie.rb |
loaf-0.1.0 | lib/loaf/railtie.rb |