You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ActiveRecord::VERSION.to_f
NoMethodError: undefined method `to_f' for ActiveRecord::VERSION:Module
Maybe this is because I take it from the trunk:
Gemfile: gem 'protected_attributes_continued', git:'https://github.com/westonganger/protected_attributes_continued.git'
Hi everyone at protected_attributes_continued
in protected_attributes_continued/lib/active_record/mass_assignment_security/associations.rb:8:in `block in build_record'
the_scope = (ActiveRecord::VERSION.to_f >= 5.2 ? scope_for_create : create_scope)
fails with:
undefined method
to_f' for ActiveRecord::VERSION:Module`at least with older version of rails. I tried:
You might want to use instead:
Rails.version.to_f
The text was updated successfully, but these errors were encountered: