Skip to content

Commit

Permalink
Fix inflector initializer for older Rails
Browse files Browse the repository at this point in the history
Fix #115 Fix #117
  • Loading branch information
rwz committed Mar 20, 2015
1 parent 9c02940 commit c754ae0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/ember-cli/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ class Engine < Rails::Engine
end

initializer "ember-cli-rails.inflector" do
if Rails.version > "3.2"
ActiveSupport::Inflector.inflections :en do |inflect|
inflect.acronym "CLI"
end
ActiveSupport::Inflector.inflections do |inflect|
inflect.acronym "CLI" if inflect.respond_to?(:acronym)
end
end

Expand Down

0 comments on commit c754ae0

Please sign in to comment.