enju_bookmark 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -56,8 +56,9 @@ class BookmarkStatHasManifestationsController < ApplicationController
56
56
  # PUT /bookmark_stat_has_manifestations/1
57
57
  # PUT /bookmark_stat_has_manifestations/1.json
58
58
  def update
59
+ @bookmark_stat_has_manifestation.assign_attributes(params[:bookmark_stat_has_manifestation], :as => :admin)
59
60
  respond_to do |format|
60
- if @bookmark_stat_has_manifestation.update_attributes(params[:bookmark_stat_has_manifestation])
61
+ if @bookmark_stat_has_manifestation.save
61
62
  format.html { redirect_to @bookmark_stat_has_manifestation, :notice => t('controller.successfully_updated', :model => t('activerecord.models.bookmark_stat_has_manifestation')) }
62
63
  format.json { head :no_content }
63
64
  else
data/app/models/tag.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  class Tag < ActiveRecord::Base
2
+ attr_accessible
2
3
  has_many :taggings, :dependent => :destroy, :class_name => 'ActsAsTaggableOn::Tagging'
3
4
  validates :name, :presence => true
4
5
  after_save :save_taggings
@@ -1,3 +1,3 @@
1
1
  module EnjuBookmark
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
@@ -309,12 +309,7 @@ describe BookmarkStatHasManifestationsController do
309
309
  describe "with invalid params" do
310
310
  it "assigns the requested bookmark_stat_has_manifestation as @bookmark_stat_has_manifestation" do
311
311
  put :update, :id => @bookmark_stat_has_manifestation.id, :bookmark_stat_has_manifestation => @invalid_attrs
312
- end
313
-
314
- it "should ignore params" do
315
- put :update, :id => @bookmark_stat_has_manifestation.id, :bookmark_stat_has_manifestation => @invalid_attrs
316
- response.should redirect_to(assigns(:bookmark_stat_has_manifestation))
317
- assigns(:bookmark_stat_has_manifestation).bookmark_stat.should be_true
312
+ response.should render_template("edit")
318
313
  end
319
314
  end
320
315
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_bookmark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: