-
Notifications
You must be signed in to change notification settings - Fork 40
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
undefined method with
for Model
#42
Comments
with
for Developerwith
for Model
Finally, I figure out the issue. We have to require the below into application.rb require "active_record_extended" But it should be mentioned in ReadMe for better clarity. |
Same problem. I have added it "require "active_record_extended" but still not working. config/application.rb
|
odd, I've worked on many projects with this gem. Not once have I ever had to explicitly require it. It might be related to how your project's are setup and more so autoloaders. |
I have followed the installation step as below.
Add this line to your application's Gemfile:
gem 'active_record_extended'
And then execute:
$ bundle
Why I'm still getting the below issue?
Rails version: gem 'rails', '~> 5.1.4'
Ruby version: ruby-2.5.0
Should I have to require any module manually in Models?
The text was updated successfully, but these errors were encountered: