app/controllers/cambium/admin_controller.rb in cambium-1.1.4 vs app/controllers/cambium/admin_controller.rb in cambium-1.1.5
- old
+ new
@@ -70,10 +70,10 @@
not_found unless current_user.is_admin?
end
def create_params
params
- .require(admin_model.to_s.humanize.downcase.to_sym)
+ .require(admin_model.to_s.tableize.singularize.to_sym)
.permit(admin_form.fields.to_h.keys)
end
def update_params
create_params