Sha256: 5672ddf6d6103a733af2f5691890f99eec11dd0dac44ee7586510665ce9c0485

Contents?: true

Size: 360 Bytes

Versions: 3

Compression:

Stored size: 360 Bytes

Contents

require "nether"
require "rails"

module Nether
  class Engine < Rails::Engine
    initializer 'nether.helper' do |app|
      ActionView::Base.send :include, NetherHelper
    end
    
    initializer 'nether.action_controller' do |app|
      ActiveSupport.on_load(:action_controller) do
        include Nether::NetherController
      end
    end
    
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nether-0.0.5 lib/nether/engine.rb
nether-0.0.4 lib/nether/engine.rb
nether-0.0.3 lib/nether/engine.rb