title: How to override class initialize method and use FactoryBot?
body: <p>I'm using FactoryBot with Rspec on rails.</p>
  
  <p>I have a <strong>SpecificKeyword</strong> ruby class where I extend the <code>inittialize</code> method:</p>
  
  <pre><code>def initialize(args)
     super(args)
     # Init regexp field immediatly when creating keyword
     self.regexp = make_regexp(args[:specificity])
  end
  </code></pre>
  
  <p>In my Rspec tests, i try to call this:
  <code>@kw_ex = create(:specific_keyword, name: 'Test Keyword')</code>.</p>
  
  <p>But I get this stack trace:</p>
  
  <pre><code> ArgumentError:
          wrong number of arguments (0 for 1)
        # ./app/models/specific_keyword.rb:19:in `initialize'
  </code></pre>
  
  <p>It looks like when instantiating a SpecificKeyword with FactoryBot, no args are passed to the init method. Is this a desired behavior, and if so, how am I supposed to proceed to keep using FactoryBot for my tests? It does work when I just do <code>SpecificKeyword.new(name:'Test')</code>.</p>
  
  <p>If I do not override the <code>initialize</code> method, it does work.</p>