attribute_ext 1.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +17 -4
- data/attribute_ext.gemspec +1 -1
- metadata +4 -5
- data/.gitignore +0 -4
- data/.project +0 -18
data/README.md
CHANGED
@@ -2,12 +2,23 @@
|
|
2
2
|
AttributeExt
|
3
3
|
============
|
4
4
|
|
5
|
-
Copyright (C) 2011 Jan Graichen
|
6
|
-
|
7
5
|
AttributeExt provides additional access control for rails model attributes.
|
8
6
|
It contains two modules one to protect attributes from mass assignment and one
|
9
7
|
to hide attributes when serializing models.
|
10
8
|
|
9
|
+
Install
|
10
|
+
-------
|
11
|
+
|
12
|
+
Just add the following to your Gemfile
|
13
|
+
|
14
|
+
gem 'attribute_ext'
|
15
|
+
|
16
|
+
and run `bundle` command.
|
17
|
+
|
18
|
+
You can also install AttributeExt as a rails plugin by cloning the repository to
|
19
|
+
`vendor/plugins`.
|
20
|
+
|
21
|
+
|
11
22
|
Changelog
|
12
23
|
---------
|
13
24
|
|
@@ -72,7 +83,7 @@ Also support Proc blocks.
|
|
72
83
|
|
73
84
|
Examples:
|
74
85
|
|
75
|
-
|
86
|
+
Always allow mass assignment for attribute.
|
76
87
|
|
77
88
|
class User < ActiveRecord::Base
|
78
89
|
safe_attributes :attribute
|
@@ -94,5 +105,7 @@ Message text can not be mass assigned when post is locked.
|
|
94
105
|
License
|
95
106
|
-------
|
96
107
|
|
108
|
+
Copyright (C) 2011 Jan Graichen
|
109
|
+
|
97
110
|
AttributeExt is licensed under the Apache License, Version 2.0.
|
98
|
-
See LICENSE for more information.
|
111
|
+
See LICENSE for more information.
|
data/attribute_ext.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "attribute_ext"
|
6
|
-
s.version = "1.0"
|
6
|
+
s.version = "1.0.1"
|
7
7
|
s.authors = ["Jan Graichen"]
|
8
8
|
s.email = ["jan.graichen@altimos.de"]
|
9
9
|
s.homepage = "https://github.com/jgraichen/attribute_ext"
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: attribute_ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Jan Graichen
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2011-09-
|
18
|
+
date: 2011-09-20 00:00:00 Z
|
18
19
|
dependencies: []
|
19
20
|
|
20
21
|
description: AttributeExt provides additional access control for rails model attributes.
|
@@ -27,8 +28,6 @@ extensions: []
|
|
27
28
|
extra_rdoc_files: []
|
28
29
|
|
29
30
|
files:
|
30
|
-
- .gitignore
|
31
|
-
- .project
|
32
31
|
- Gemfile
|
33
32
|
- LICENSE
|
34
33
|
- README.md
|
data/.gitignore
DELETED
data/.project
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<projectDescription>
|
3
|
-
<name>attribute_ext</name>
|
4
|
-
<comment></comment>
|
5
|
-
<projects>
|
6
|
-
</projects>
|
7
|
-
<buildSpec>
|
8
|
-
<buildCommand>
|
9
|
-
<name>com.aptana.ide.core.unifiedBuilder</name>
|
10
|
-
<arguments>
|
11
|
-
</arguments>
|
12
|
-
</buildCommand>
|
13
|
-
</buildSpec>
|
14
|
-
<natures>
|
15
|
-
<nature>com.aptana.ruby.core.rubynature</nature>
|
16
|
-
<nature>com.aptana.projects.webnature</nature>
|
17
|
-
</natures>
|
18
|
-
</projectDescription>
|