I have a very simple two model scenario with a has_many association in the model that I want to clone. So I declared
class PostsCloner < Clowne::Cloner
adapter :active_record
include_association :comments
end
The clone attempt results in an exception: Clowne::Adapters::ActiveRecord::Resolvers::UnknownAssociation: Association comments couldn't be found for User
It appears that this code is attempting to resolve the relation using a string index into ...reflections, but the reflections hash uses symbols.
I have a very simple two model scenario with a has_many association in the model that I want to clone. So I declared
The clone attempt results in an exception: Clowne::Adapters::ActiveRecord::Resolvers::UnknownAssociation: Association comments couldn't be found for User
It appears that this code is attempting to resolve the relation using a string index into ...reflections, but the reflections hash uses symbols.
https://github.com/clowne-rb/clowne/blob/3d8f23f4aa39b33cefc73d18ef08fd13c0c742e9/lib/clowne/adapters/active_record/resolvers/association.rb#L12-L18
Maybe this is a compatibility issue with Rails 4.1.8, Ruby 2.3