Remove mass assignment and fixed bug when attribute names 'to'

When model has field `to` factory `Enum` was always because it checks on method name `to_enum` and this method is defined in `Object`.

Also fixed bug for rails 4 when try to edit record or create a new one, it invokes a mass assignment method and this methods were removed from the rails 4.