Skip to content

Commit

Permalink
Retrieve AM::Type::Boolean::FALSE_VALUES for Rails 5.
Browse files Browse the repository at this point in the history
  • Loading branch information
josemotanet authored and kares committed Mar 8, 2016
1 parent 5489258 commit fbc5adc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/arjdbc/jdbc/type_cast.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Jdbc
module TypeCast

TRUE_VALUES = Column::TRUE_VALUES if Column.const_defined?(:TRUE_VALUES)
FALSE_VALUES = Column::FALSE_VALUES
FALSE_VALUES = Column.const_defined?(:FALSE_VALUES) ? Column::FALSE_VALUES : ActiveModel::Type::Boolean::FALSE_VALUES

#module Format
ISO_DATE = Column::Format::ISO_DATE
Expand Down

0 comments on commit fbc5adc

Please sign in to comment.