Skip to content

Commit

Permalink
Replacing the version check with the function call
Browse files Browse the repository at this point in the history
  • Loading branch information
Samer Masry committed Jan 23, 2013
1 parent d2fe347 commit c7f1af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/simple_navigation/adapters/rails.rb
Expand Up @@ -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|
Expand Down

0 comments on commit c7f1af0

Please sign in to comment.