-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Accepting nil
as enum value
#1270
Conversation
Current coverage is 97.26% (diff: 100%)@@ 7.0.x #1270 diff @@
==========================================
Files 168 168
Lines 10404 10418 +14
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 10119 10133 +14
Misses 285 285
Partials 0 0
|
@@ -29,7 +29,7 @@ A Neo4j OGM (Object-Graph-Mapper) for use in Ruby on Rails and Rack frameworks h | |||
s.add_dependency('orm_adapter', '~> 0.5.0') | |||
s.add_dependency('activemodel', '~> 4') | |||
s.add_dependency('activesupport', '~> 4') | |||
s.add_dependency('neo4j-core', '>= 6.0.0') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe both >= 6.0.0
and < 7.0.0
? Is that possible in a gemspec
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cheerfulstoic Yup, it's possible ;)
I'm good with this! I hope that nobody is depending on the breaking change, but they may very well need the |
Great! Dunno if it's ok to merge now, or just wait for the test here: #1261 |
@cheerfulstoic ruby 2.0.0 fails to bundle ._. |
Fixed! |
* 7.1.x: Release .15 patch with #1270 change Trying to fix ruby 2.0 build. Fix gemspec. Fix Gemfile for jruby. Accepting `nil` as enum value Update ActiveRel.rst Up to 7.1.2 to include fix from model_label_map_fix Put this back, because of course it broke things Fix issue with label / model mappings getting stuck before all models have a chance to load. Also don't clear WRAPPED_CLASSES (I think this will fix the CypherNode issue we've been seeing in development
* 8.0.x: CHANGELOG entry for #1254 Improvements based on #1264 Destroy should return object like in ActiveRecord Use ActiveSupport::Logger instead of base Logger Release .15 patch with #1270 change Trying to fix ruby 2.0 build. Fix gemspec. Fix Gemfile for jruby. Accepting `nil` as enum value Add information about which exceptions are replacing old exceptions Update ActiveRel.rst Up to 7.1.2 to include fix from model_label_map_fix Put this back, because of course it broke things Fix issue with label / model mappings getting stuck before all models have a chance to load. Also don't clear WRAPPED_CLASSES (I think this will fix the CypherNode issue we've been seeing in development
Fixes #1261
This pull introduces/changes:
:_default
option to define the default value for enums.This is a braking change.
If we want to keep the previous behavior, we can implement an
_allow_nil
option, to enablenil
as default value.Pings:
@cheerfulstoic
@subvertallchris