clio / polymorphic_integer_type

MIT License
37 stars 35 forks source link

Rails 5.2.0 support #19

Closed fmluizao closed 6 years ago

fmluizao commented 6 years ago

Hi,

I'm trying to update my Rails app to 5.2.0. I'm getting the folowing backtrace when app starts:

.../gems/ruby-2.5.0/gems/polymorphic_integer_type-2.1.0/lib/polymorphic_integer_type/extensions.rb:9:in `belongs_to'
.../gems/ruby-2.5.0/gems/activerecord-5.2.0/lib/active_record/associations.rb:1654:in `belongs_to'
.../gems/ruby-2.5.0/gems/activerecord-5.2.0/lib/active_record/associations/builder/association.rb:31:in `build'
.../gems/ruby-2.5.0/gems/activerecord-5.2.0/lib/active_record/associations/builder/association.rb:43:in `create_reflection'
.../gems/ruby-2.5.0/gems/activerecord-5.2.0/lib/active_record/associations/builder/association.rb:51:in `build_scope': undefined method `arity' for {:polymorphic=>true}:Hash (NoMethodError)

Any clue?