Sha256: fcc8e72b6dd069cd37a5267ff7c974de78a4cfc41387333ea3a9f85c62abb314

Contents?: true

Size: 340 Bytes

Versions: 8

Compression:

Stored size: 340 Bytes

Contents

require "rails"
require "savagery/helpers/rails"
require "savagery/middleware"

module Savagery
  class Engine < Rails::Engine
    initializer "savagery.helpers" do |app|
      ActionController::Base.helper Helpers::Rails
    end

    initializer "savagery.middleware" do |app|
      app.config.middleware.use Middleware
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
savagery-0.6.0 lib/savagery/engine.rb
savagery-0.5.0 lib/savagery/engine.rb
savagery-0.4.4 lib/savagery/engine.rb
savagery-0.4.3 lib/savagery/engine.rb
savagery-0.4.2 lib/savagery/engine.rb
savagery-0.4.1 lib/savagery/engine.rb
savagery-0.4.0 lib/savagery/engine.rb
savagery-0.3.3 lib/savagery/engine.rb