igorkasyanchuk / rails_db

Rails Database Viewer and SQL Query Runner
https://www.railsjazz.com/
MIT License
1.46k stars 111 forks source link

Rails 3.2 no attr_accessible support breaks creates and updates #72

Closed spacewaffle closed 7 years ago

spacewaffle commented 7 years ago

I found that when creating or updating records, no parameters get inserted because attr_accessor doesn't exist on the created classes. This is due to the gem supporting Rails 4 strong parameters but not the old Rails 3 attr_accessible way.

igorkasyanchuk commented 7 years ago

good catch too ... could you please make a PR with this fix? for Rails < 4 ?

igorkasyanchuk commented 7 years ago

done