essay-paranoia 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee9f1edf40dd5c0020e40d6dc0eb6bab0a309490
4
- data.tar.gz: edc0634b03e62ec0c9b0dcf84720fbf2b453b8a9
3
+ metadata.gz: 5944fd1713c30b9467bf3c6dd26ef219b881a007
4
+ data.tar.gz: ee37fa93906de66021a3b3b126ce2ddf3a21ba47
5
5
  SHA512:
6
- metadata.gz: 1b8b675daf52c016dbbce081a75709ccd4eed5ff6a4fcbaa3bd6cb82c768673c409adc3d8a6c2e8e36cde97e3577b96f20946b10d0a3230ad6df99709295a795
7
- data.tar.gz: a9169d5a97cae975e5c3683ef1a2f9f261c6e203fd5897e7c6c9fd847598acd85c54534ea636592bb6cdabb879fff58844268ba58fd7664e60648381c40ad327
6
+ metadata.gz: 8121fab8c50b2afb9d85e98ded4efd6975b60a3604cf7281243784d5b958dd970be1f346f0ae43d6e95e7c395cb5a2ce5cfccb6fad5498c015f8647464bf5b01
7
+ data.tar.gz: bc083fd7634aa3b1d6e97630b0879de1f490338ca584031611896371196ba13c4511734583ab29420c00223c70618abeade43289fd7527977556ab3359cbde5b
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'essay-paranoia'
6
- s.version = '1.0.2'
6
+ s.version = '1.0.3'
7
7
  s.authors = ['Yaroslav Konoplov']
8
8
  s.email = ['eahome00@gmail.com']
9
9
  s.summary = 'Essay writer for paranoia'
@@ -7,7 +7,7 @@ require 'essay'
7
7
  module Essay
8
8
  class ModelFeatures
9
9
  def paranoid?
10
- model_class.respond_to?(:paranoia_column)
10
+ active_record.respond_to?(:paranoia_column)
11
11
  end
12
12
 
13
13
  serialize do
@@ -17,7 +17,7 @@ module Essay
17
17
 
18
18
  class AttributeFeatures
19
19
  def paranoia_timestamp?
20
- model_class.try(:paranoia_column).try(:to_s) == attribute_name.to_s
20
+ active_record.try(:paranoia_column).try(:to_sym) == attribute.name
21
21
  end
22
22
 
23
23
  serialize do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: essay-paranoia
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yaroslav Konoplov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-20 00:00:00.000000000 Z
11
+ date: 2016-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: paranoia