Remove the attr_accessible after collect them in model.rb and make the remove_attr_accessible_from_model as single public method.
Require gem activesupport