changed dependencies and required protected_attributes to avoid
exception if used with rails 4