Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Replacing the version check with the function call

  • Loading branch information...
commit c7f1af0683e04cd6a1b08f6ad5b9226fc954af5e 1 parent d2fe347
@smasry authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/simple_navigation/adapters/rails.rb
View
2  lib/simple_navigation/adapters/rails.rb
@@ -82,7 +82,7 @@ def extract_controller_from(context)
end
# Initializer for Rails3
-if defined?(Rails) && Rails::VERSION::MAJOR == 3
+if defined?(Rails) && SimpleNavigation::Adapters::Rails.gte_rails3?
module SimpleNavigation
class Railtie < Rails::Railtie
initializer "simple_navigation.register" do |app|
Please sign in to comment.
Something went wrong with that request. Please try again.