app/controllers/subscribes_controller.rb in enju_library-0.3.3 vs app/controllers/subscribes_controller.rb in enju_library-0.3.4

- old
+ new

@@ -58,10 +58,10 @@ # PUT /subscribes/1 # PUT /subscribes/1.json def update respond_to do |format| - if @subscribe.update_attributes(subscribe_params) + if @subscribe.update(subscribe_params) format.html { redirect_to @subscribe, notice: t('controller.successfully_updated', model: t('activerecord.models.subscribe')) } format.json { head :no_content } else format.html { render action: "edit" } format.json { render json: @subscribe.errors, status: :unprocessable_entity }