acts_as_sanitizable 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/VERSION +1 -1
- data/acts_as_sanitizable.gemspec +3 -3
- data/lib/sanitizable/macro.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: afcaa339fb8223c02c4d2adb0cd01b79d98c740f
|
4
|
+
data.tar.gz: 0eb4bde3f8e6f1f61c48dac81b4af151db549ce2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df5ae955376ccec15052d2ac59d9a5264bc80606c20d6e78a6db33c375d3cd3e7dd101208477ad4f2ae76da48b14775511b8880d808b8db536ca292a5f13b106
|
7
|
+
data.tar.gz: 3a4e23d60ee77a0df51c6ea96f0306716523a9c2401bc1e9e510e253504e637afa44d4750ad7f5ee16eeec81a80a50238b82c30832b5cbb3f1e942935ff4a823
|
data/README.md
CHANGED
@@ -63,7 +63,7 @@ class User < ActiveRecord::Base
|
|
63
63
|
end
|
64
64
|
```
|
65
65
|
|
66
|
-
If you wish to not sanitize specific attributes on an inherited model you can call `
|
66
|
+
If you wish to not sanitize specific attributes on an inherited model you can call `skip_sanitization_of`. When you have been using a context in the sanitizer definition be sure to specify the same one when using `skip_sanitization_of`.
|
67
67
|
|
68
68
|
```ruby
|
69
69
|
class Admin < User
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.2
|
data/acts_as_sanitizable.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: acts_as_sanitizable 0.4.
|
5
|
+
# stub: acts_as_sanitizable 0.4.2 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "acts_as_sanitizable"
|
9
|
-
s.version = "0.4.
|
9
|
+
s.version = "0.4.2"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Christoph Chilian"]
|
14
|
-
s.date = "2014-
|
14
|
+
s.date = "2014-05-07"
|
15
15
|
s.description = "Sanitizable concern to sanitize attributes the way you like"
|
16
16
|
s.email = "christoph@chilian.de"
|
17
17
|
s.extra_rdoc_files = [
|
data/lib/sanitizable/macro.rb
CHANGED
@@ -41,8 +41,8 @@ module Sanitizable
|
|
41
41
|
end
|
42
42
|
|
43
43
|
def skip_sanitization_of(*attribute_names)
|
44
|
+
options = attribute_names.extract_options!.assert_valid_keys(:on)
|
44
45
|
if self.include?(Model)
|
45
|
-
options = attribute_names.extract_options!.assert_valid_keys(:on)
|
46
46
|
attribute_names = attribute_names.map(&:to_s)
|
47
47
|
context = options[:on]
|
48
48
|
sanitizable_attributes.delete_if do |attribute|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_sanitizable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christoph Chilian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|