lib/lite/ruby/object.rb in lite-ruby-1.1.3 vs lib/lite/ruby/object.rb in lite-ruby-1.1.4

- old
+ new

@@ -10,10 +10,13 @@ ].freeze TRUE_VALUES ||= %w[ 1 t true y yes on ].freeze - unless defined?(PG) && ARGV.first.start_with?('db:') + # NOTE: There is a class between the PG gem and the `array?` method. + # We only need to skip this on migrations since that action + # happens on a seperate runtime. + unless defined?(PG) && ARGV.first.to_s.start_with?('db:') def array? is_a?(Array) end end