phrasing 3.0.3 → 3.0.4
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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/stylesheets/phrasing_edit_mode_bubble.css.scss +4 -0
- data/lib/phrasing.rb +1 -0
- data/lib/phrasing/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2698d56a19db8b81f308afa938f0a1e7cc7af4cc
|
|
4
|
+
data.tar.gz: c4ac5317b2d1c5e156d85c7258c581383b2a3c59
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1a622c18735bf5f33097ec71d564f5b2abf03bac7b428905fb201ae169e0d573b3c39f3e424c9ac186cf0bbc3c1c8b0556fca81201d6530a656874198402c40c
|
|
7
|
+
data.tar.gz: 7ce4fbed341ffcf56085eea010ff3c68df673eafd56afc8f96b870e7e6b1d8f706b2bc2240410958a4cfa34c1fefa3fc23ce66b48aa5cb4feaf570360cc1f09b
|
data/README.md
CHANGED
|
@@ -72,7 +72,7 @@ In the above example, <tt>@post</tt> is the record with a <tt>title</tt> attribu
|
|
|
72
72
|
|
|
73
73
|
Since Phrasing can be used to update any attribute in any table (using the model_phrase method), special care must be taken into consideration from a security standpoint.
|
|
74
74
|
|
|
75
|
-
By default, Phrasing doesn't allow updating of any attribute apart from
|
|
75
|
+
By default, Phrasing doesn't allow updating of any attribute apart from <tt>PhrasingPhrase.value</tt>. To be able to work with other attributes, you need to whitelist them.
|
|
76
76
|
|
|
77
77
|
In the <tt>config/initializers/phrasing.rb</tt> file you can whitelist your model attributes like this:
|
|
78
78
|
|
data/lib/phrasing.rb
CHANGED
data/lib/phrasing/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: phrasing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tomislav Car
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-11-
|
|
12
|
+
date: 2013-11-22 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|