Skip to content

Rails 4.2.5 - conflict with a method creator #26

@Nikolay-Lipovtsev

Description

@Nikolay-Lipovtsev

Gemfile

gem 'rails', '~> 4.2', '>= 4.2.5'
gem 'userstamp', :git => 'https://github.com/stricte/userstamp.git', :branch => 'rails4'

User model

class User < ActiveRecord::Base
  ...
  model_stamper
  stampable
  ...
end

I have this message

You tried to define an association named creator on the model User, but this will conflict with a method creator already defined by Active Record. Please choose a different association name. (ArgumentError)

How I can fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions