I have a ActiveRecord::Base subclass. When I create a new instance I'm getting an argument error:
ArgumentError:
wrong number of arguments (2 for 1)
Here is my code:
class Subclass < ActiveRecord::Base
end
Subclass.new(hash, without_protection: true)
Gem versions are:
activemodel (3.2.13)
activerecord (3.2.13)
Why does this generate and argument error? According to API Dock, inititialize still takes two arguments as of 3.2.13