Sha256: ac94a95e42781791f8df3716a497cb6e4e1f393313abb19096f3b2fa478d8b38

Contents?: true

Size: 294 Bytes

Versions: 16

Compression:

Stored size: 294 Bytes

Contents

require File.dirname(__FILE__) + '/../../app/helpers/spaghetti_helpers'

module Spaghetti
  class Engine < ::Rails::Engine
    initializer "spaghetti.setup_helpers" do |app|
      app.config.to_prepare do
        ActionController::Base.send :helper, SpaghettiHelpers
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
spaghetti-0.6.0 lib/spaghetti/engine.rb
spaghetti-0.5.1 lib/spaghetti/engine.rb
spaghetti-0.5.0 lib/spaghetti/engine.rb
spaghetti-0.4.3 lib/spaghetti/engine.rb
spaghetti-0.4.2 lib/spaghetti/engine.rb
spaghetti-0.4.1 lib/spaghetti/engine.rb
spaghetti-0.4.0 lib/spaghetti/engine.rb
spaghetti-0.3.5 lib/spaghetti/engine.rb
spaghetti-0.3.4 lib/spaghetti/engine.rb
spaghetti-0.3.3 lib/spaghetti/engine.rb
spaghetti-0.3.2 lib/spaghetti/engine.rb
spaghetti-0.3.0 lib/spaghetti/engine.rb
spaghetti-0.2.9 lib/spaghetti/engine.rb
spaghetti-0.2.8 lib/spaghetti/engine.rb
spaghetti-0.2.7 lib/spaghetti/engine.rb
spaghetti-0.2.6 lib/spaghetti/engine.rb