Sha256: 8998693aab71b48fe48e54f04a0f0bd55fed89376fbb4898e23e10b1f0f24b7e

Contents?: true

Size: 437 Bytes

Versions: 13

Compression:

Stored size: 437 Bytes

Contents

module SimpleNavigation
  module Initializer

    class Rails2
      def self.run
        SimpleNavigation.rails_root = RAILS_ROOT
        SimpleNavigation.rails_env = RAILS_ENV
        SimpleNavigation.init_rails
      end
    end
    
    class Rails3
      def self.run
        SimpleNavigation.rails_root = Rails.root
        SimpleNavigation.rails_env = Rails.env
        SimpleNavigation.init_rails
      end
    end
    
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
simple-navigation-2.7.3 lib/simple_navigation/initializer.rb
simple-navigation-2.7.2 lib/simple_navigation/initializer.rb
simple-navigation-2.7.1 lib/simple_navigation/initializer.rb
simple-navigation-2.7.0 lib/simple_navigation/initializer.rb
simple-navigation-2.6.0 lib/simple_navigation/initializer.rb
simple-navigation-2.5.4 lib/simple_navigation/initializer.rb
simple-navigation-2.5.3 lib/simple_navigation/initializer.rb
simple-navigation-2.5.2 lib/simple_navigation/initializer.rb
simple-navigation-2.5.1 lib/simple_navigation/initializer.rb
simple-navigation-2.5.0 lib/simple_navigation/initializer.rb
simple-navigation-2.4.2 lib/simple_navigation/initializer.rb
simple-navigation-2.4.1 lib/simple_navigation/initializer.rb
simple-navigation-2.4.0 lib/simple_navigation/initializer.rb