Skip to content

Commit

Permalink
Dont require active_support/core_ext/string/inflections as that fails…
Browse files Browse the repository at this point in the history
… when i18n is not installed
  • Loading branch information
lifo committed Aug 10, 2011
1 parent fdd5061 commit ec1ddb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cramp/generators/application.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'thor/group'
require 'active_support/core_ext/string/strip'
require 'active_support/core_ext/string/inflections'
require 'active_support/inflector/methods'
require 'active_support/core_ext/object/blank'

module Cramp
Expand Down Expand Up @@ -81,7 +81,7 @@ def app_const
end

def app_const_base
@app_const_base ||= app_name.gsub(/\W/, '_').squeeze('_').camelize
@app_const_base ||= ActiveSupport::Inflector.camelize(app_name.gsub(/\W/, '_').squeeze('_'), true)
end

def valid_const?
Expand Down

0 comments on commit ec1ddb7

Please sign in to comment.