Permalink
Browse files

Avoid triggering ActiveSupport deprecation warning (#58)

  • Loading branch information...
1 parent 0d3a40b commit b475b6e6cf44400ed48808d42160833b850b5e22 @ggilder ggilder committed Aug 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/commander/user_interaction.rb
@@ -327,7 +327,7 @@ module AskForClass
# const_get(:Config) issues a deprecation warning on ruby 1.8.7
Object.const_get(const) unless const == :Config
end.select do |const|
- const.is_a? Class and const.respond_to? :parse
+ const.class == Class && const.respond_to?(:parse)
end).each do |klass|
define_method "ask_for_#{klass.to_s.downcase}" do |prompt|
$terminal.ask(prompt, klass)

0 comments on commit b475b6e

Please sign in to comment.