Permalink
Browse files

Replacing the version check with the function call

  • Loading branch information...
1 parent d2fe347 commit c7f1af0683e04cd6a1b08f6ad5b9226fc954af5e @smasry committed Jan 23, 2013
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|

0 comments on commit c7f1af0

Please sign in to comment.