safe_attributes
safe_attributes copied to clipboard
Add support for reserved word column names with ActiveRecord
I'm looking for a solution to be able to write a column named 'ID' (which isn't the primary key) in an external database. I noticed in the README it says...
I have a legacy DB. One of the columns is named *attributes*. It does cause lots of pain even with `bad_attribute_names :attributes`. I was trying to call MyModule::MyModel.new(params_with_attributes), but I...
This addresses #9. We have been running this code in production since December without issues.
Hi, I'm migrating a legacy app from rails 2 - rails 4. I have a column `format` in my table which is clashing with instance_method name(and gettin `private method format'...
When using safe_attributes gem I get a 'stack level too deep' error 500 internal server error The issue seems to be related to rendering with errors. I have seen the...
Placeholder, after testing against Rails 4 beta1 it is clear the current code does not work with Rails 4. If someone wants to take a stab at fixing it I...