Permalink
Browse files

cosmetic preps for 0.0.9

  • Loading branch information...
1 parent eb3ed5f commit fffba071534ca116d040d04753e3da5611c3b1ae @stanislaw committed Feb 22, 2013
Showing with 7 additions and 3 deletions.
  1. +6 −2 CHANGELOG.md
  2. +0 −1 lib/simple_roles/many/roles_methods.rb
  3. +1 −0 spec/simple_roles/many_spec.rb
View
@@ -1,6 +1,10 @@
-# master
+# Master
-...
+# Version 0.0.9
+
+### Changed
+
+* Many strategy (persistence): setter `roles=` does not call save anymore, so it does not persist new records!
# Version 0.0.6
@@ -52,7 +52,6 @@ def mass_assignment_authorizer *args
def has_roles? *rolez
rolez.flatten!
- # rrr roles
rolez.all? do |role|
roles.include? role
end
@@ -79,6 +79,7 @@
it "#roles= should not persist the user when being set" do
unsaved_user = build :user
unsaved_user.roles = [:admin]
+ unsaved_user.roles.should == [:admin]
unsaved_user.should_not be_persisted
end

0 comments on commit fffba07

Please sign in to comment.