Created
November 29, 2016 04:00
-
-
Save koic/bf31bc0f89427cc9e61fae0371873ad0 to your computer and use it in GitHub Desktop.
A patch for Rails 5 (with Oracle) and Enumerize
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# activemodel-5.0.0.1/lib/active_model/type/string.rb | |
# | |
module ActiveModel | |
module Type | |
class String < ImmutableString # :nodoc: | |
... | |
def serialize(value) | |
case value | |
when ::String then value.to_s | |
else super | |
end | |
end | |
... | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment