-
Notifications
You must be signed in to change notification settings - Fork 240
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
Call Module#module_parent instead of deprecated #parent #349
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ gem "activerecord", "~> 5.0.0" | |
platforms :ruby do | ||
gem "mysql2" | ||
gem "pg" | ||
gem "sqlite3" | ||
gem "sqlite3", "~> 1.3", "< 1.4" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yea, remove this one too |
||
end | ||
|
||
platforms :jruby do | ||
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -32,7 +32,12 @@ def initialize(model_class, options) | |||||||||
end | ||||||||||
|
||||||||||
def hierarchy_class_for_model | ||||||||||
hierarchy_class = model_class.parent.const_set(short_hierarchy_class_name, Class.new(ActiveRecord::Base)) | ||||||||||
parent_class = if ActiveSupport.version >= Gem::Version.new('6.0.0.beta1') | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. may want to Also, rails 6.0 has been released, so probably want to fix that too
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could also be
Suggested change
|
||||||||||
model_class.module_parent | ||||||||||
else | ||||||||||
model_class.parent | ||||||||||
end | ||||||||||
hierarchy_class = parent_class.const_set(short_hierarchy_class_name, Class.new(ActiveRecord::Base)) | ||||||||||
use_attr_accessible = use_attr_accessible? | ||||||||||
include_forbidden_attributes_protection = include_forbidden_attributes_protection? | ||||||||||
model_class_name = model_class.to_s | ||||||||||
|
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.
I think these gemfiles have been fixed at their source in appraisals.
Could you remove the changes to the gemfiles from this PR and ensure that the tests work for you?