ignorable 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -1
  3. data/lib/ignorable.rb +4 -0
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7901bf8b68b27166b0643cee147e4c13b1831648
4
- data.tar.gz: 8464d803ab68abe2327c412271072503133c455e
3
+ metadata.gz: 6174ac09583bd9e53af38a67f3606d45c0663cda
4
+ data.tar.gz: 24ebe11e7547772da1c0d88d4d28a3e2305f55a9
5
5
  SHA512:
6
- metadata.gz: b1bdc48b499ca3de7c04c2f89ec81e6a36fe1403f71f920868f2d138145551f11a3fde75cd98c288fbe25609d1b914364a216626329ae319f919c33796a3cfb5
7
- data.tar.gz: 142e290145dcd6047cede93bdd55a420bdb282281066f2de3e559080d86e5f3463678345d2e1960a7e1212ffe35f741c10a6413867eef37445e6f22844033409
6
+ metadata.gz: 07c87c5f85b7c512c365613d780adff81f9dd969fae2a68edd93de68964ec03ace04fbfd16ddd5c3aaafd2947c1cf824a0384d2c7345c6ca78bca4f893b17ab7
7
+ data.tar.gz: 48d310da6c1f1257bee016d0397b09c2f42aa66cd7e501752f75f2c74baeb8da35299e9954006c76bc2075e5ce385e97781860c45dcbbeff090634aa2049de30
data/README.md CHANGED
@@ -22,4 +22,7 @@ Usage
22
22
  Rails Versions
23
23
  ==============
24
24
 
25
- Tested on Rails 3.2, Rails 4.1.0.
25
+ Tested on Rails 3.2, Rails 4.1.0.
26
+
27
+ This gem is not needed on Rails 5.0 because an `ignored_columns` feature has
28
+ been merged in https://github.com/rails/rails/pull/21720
@@ -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.3.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: 2015-04-18 00:00:00.000000000 Z
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.4.5
59
+ rubygems_version: 2.6.11
60
60
  signing_key:
61
61
  specification_version: 4
62
62
  summary: Ignore columns in ActiveRecord models