attribute-permissions 0.9 → 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/mass_assignment.rb +1 -1
  2. metadata +5 -5
@@ -43,7 +43,7 @@ module MassAssignment
43
43
  # user.username = 'Manfred'
44
44
  # user.password = 'very secret'
45
45
  def mass_assign(attributes)
46
- send(:attributes=, attributes, false)
46
+ assign_attributes(attributes, :without_protection => true)
47
47
  end
48
48
  end
49
49
 
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attribute-permissions
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
+ - 1
7
8
  - 0
8
- - 9
9
- version: "0.9"
9
+ version: "1.0"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Manfred Stienstra
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-03-15 00:00:00 +01:00
17
+ date: 2011-11-17 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  requirements: []
62
62
 
63
63
  rubyforge_project:
64
- rubygems_version: 1.5.2
64
+ rubygems_version: 1.6.2
65
65
  signing_key:
66
66
  specification_version: 3
67
67
  summary: Attribute Permissions adds methods to mass-assign attributes to ActiveRecord objects. It enables you to circumvent attribute protection with a minimal amount of code.