Sha256: d0f227c278799a4b5b08b655c198ee806da1b4a3274a11af1296dba3070d3462

Contents?: true

Size: 331 Bytes

Versions: 12

Compression:

Stored size: 331 Bytes

Contents

module RocketNavigation
  class Railtie < ::Rails::Railtie
    initializer 'rocket_navigation.init' do |app|
      ActionController::Base.send(:include, RocketNavigation::Helpers)
      RocketNavigation::Helpers.instance_methods.each do |m|
        ActionController::Base.send(:helper_method, m.to_sym)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rocket_navigation-0.3.3 lib/rocket_navigation/railtie.rb
rocket_navigation-0.3.2 lib/rocket_navigation/railtie.rb
rocket_navigation-0.3.1 lib/rocket_navigation/railtie.rb
rocket_navigation-0.3.0 lib/rocket_navigation/railtie.rb
rocket_navigation-0.2.3 lib/rocket_navigation/railtie.rb
rocket_navigation-0.2.2 lib/rocket_navigation/railtie.rb
rocket_navigation-0.2.1 lib/rocket_navigation/railtie.rb
rocket_navigation-0.2.0 lib/rocket_navigation/railtie.rb
rocket_navigation-0.1.3 lib/rocket_navigation/railtie.rb
rocket_navigation-0.1.2 lib/rocket_navigation/railtie.rb
rocket_navigation-0.1.1 lib/rocket_navigation/railtie.rb
rocket_navigation-0.1.0 lib/rocket_navigation/railtie.rb