ledermann / rails-settings

Manage settings with Ruby on Rails
MIT License
1k stars 137 forks source link

add attr_accessible for updating. override value_before_type_cast so co... #24

Closed smpallen99 closed 11 years ago

smpallen99 commented 11 years ago

I had two issues when trying to user Settings in a rails form. Update failed mass assignment validation since attr_accessible was missing. Added it.

text_field displays the YAML format stored in the database. Override active-record method to return the YAML parsed value.

ledermann commented 11 years ago

Please have a look at release 2, which is a complete rewrite. It handles mass assignment security, too.