• R
    Fix error message when trying to create an associated record · 04852b87
    Rafael Mendonça França 提交于
    This error only happens when the foreign key is missing.
    
    Before this fix the following exception was being raised:
    
        NoMethodError: undefined method `val' for #<Arel::Nodes::BindParam:0x007fc64d19c218>
    
    Now the message is:
    
        ActiveRecord::UnknownAttributeError: unknown attribute 'foreign_key' for Model.
    04852b87
company.rb 8.3 KB