sferik/rails_admin — Issue #842: Recent commit causing ActiveModel::MissingAttributeError
Author: robotmay
Created: 2011-11-18 13:42:42+00:00
State: open

Just updated our rails_admin install from master and I'm now getting:

> ActiveModel::MissingAttributeError in RailsAdmin::MainController#update

Here's the relevant bit of the stacktrace:

```
/Users/robertmay/.rvm/gems/ruby-1.9.2-p290/bundler/gems/rails_admin-6a77240c2718/config/initializers/active_record_extensions.rb:15:in `safe_send'
/Users/robertmay/.rvm/gems/ruby-1.9.2-p290/bundler/gems/rails_admin-6a77240c2718/app/models/rails_admin/history.rb:13:in `block in create_update_history'
/Users/robertmay/.rvm/gems/ruby-1.9.2-p290/bundler/gems/rails_admin-6a77240c2718/app/models/rails_admin/history.rb:11:in `each'
/Users/robertmay/.rvm/gems/ruby-1.9.2-p290/bundler/gems/rails_admin-6a77240c2718/app/models/rails_admin/history.rb:11:in `create_update_history'
/Users/robertmay/.rvm/gems/ruby-1.9.2-p290/bundler/gems/rails_admin-6a77240c2718/app/controllers/rails_admin/main_controller.rb:157:in `update'
```

I believe it's being caused by this commit: https://github.com/sferik/rails_admin/commit/dff7e1e765c06fc6d7c9cdb4270707ea158a1c2b#app/models/rails_admin/history.rb