ignorable 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/lib/ignorable.rb +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6174ac09583bd9e53af38a67f3606d45c0663cda
|
4
|
+
data.tar.gz: 24ebe11e7547772da1c0d88d4d28a3e2305f55a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07c87c5f85b7c512c365613d780adff81f9dd969fae2a68edd93de68964ec03ace04fbfd16ddd5c3aaafd2947c1cf824a0384d2c7345c6ca78bca4f893b17ab7
|
7
|
+
data.tar.gz: 48d310da6c1f1257bee016d0397b09c2f42aa66cd7e501752f75f2c74baeb8da35299e9954006c76bc2075e5ce385e97781860c45dcbbeff090634aa2049de30
|
data/README.md
CHANGED
data/lib/ignorable.rb
CHANGED
@@ -3,6 +3,10 @@ require 'active_support/core_ext/class/attribute'
|
|
3
3
|
|
4
4
|
module Ignorable
|
5
5
|
module InstanceMethods
|
6
|
+
def attributes # :nodoc:
|
7
|
+
super.reject{|col, _val| self.class.ignored_column?(col)}
|
8
|
+
end
|
9
|
+
|
6
10
|
def attribute_names # :nodoc:
|
7
11
|
super.reject{|col| self.class.ignored_column?(col)}
|
8
12
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ignorable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathaniel Jones
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-08-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
56
|
version: '0'
|
57
57
|
requirements: []
|
58
58
|
rubyforge_project:
|
59
|
-
rubygems_version: 2.
|
59
|
+
rubygems_version: 2.6.11
|
60
60
|
signing_key:
|
61
61
|
specification_version: 4
|
62
62
|
summary: Ignore columns in ActiveRecord models
|