greyscale_record 1.0.2 → 1.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 67d3b49e1ddaabefba7a1d037a82402b129d771f
4
- data.tar.gz: 54f2145e2c16f7b635811dc9c76ae8f72e345ca5
3
+ metadata.gz: 5c082eda61fc731d7e3ec455b1eddd568c43534e
4
+ data.tar.gz: 0bb00e33e5b929bcf451bc557a588ac7e6c43d6d
5
5
  SHA512:
6
- metadata.gz: 70476ab4b172751544cde382d90c7a8b713658522c64a2ea8ba9bdcd138b467e0fc248a5d8ea2a6a69c1b23f481ae1019f228a289a34f565c303f5f505b2f05f
7
- data.tar.gz: b8b2817a1d3f62d5215e520b74d3f191dc5363cd86d6572215328193b15696556fd586cdbaa4729f30f1766fc6d13650ed1062dc4c4ee6b292237dc7c96ad06f
6
+ metadata.gz: 4a558498a933c3f0427ad738498632c2e7e0904826856919202986a6219703880c2d93c6bdcf6418f3bcc1ad4a379d4222592aa315a659244267d9916b70a588
7
+ data.tar.gz: f151694f0c5c1d85fe1c3f07964c427bed3ef953e9a64fd7b17b37512bd8e8e95d01b526a84c1c75166e76de6af4c61360bda5648d11ec2134f7f530fd3d1600
@@ -13,14 +13,14 @@ module GreyscaleRecord
13
13
  class << self
14
14
 
15
15
  def load!
16
- data_store.add_table name
16
+ data_store.add_table table_name
17
17
  end
18
18
 
19
19
  def inherited(subclass)
20
20
  subclass.load!
21
21
  end
22
22
 
23
- def name
23
+ def table_name
24
24
  self.to_s.pluralize.downcase
25
25
  end
26
26
  end
@@ -8,7 +8,7 @@ module GreyscaleRecord
8
8
  # TODO: remove
9
9
  def index(field)
10
10
  return if GreyscaleRecord.live_reload
11
- data_store.add_index( name, field )
11
+ data_store.add_index( table_name, field )
12
12
  end
13
13
  end
14
14
  end
@@ -5,7 +5,7 @@ module GreyscaleRecord
5
5
 
6
6
  def initialize( base, params )
7
7
  @base = base
8
- @params = params.dup.merge!( _table: @base.name )
8
+ @params = params.dup.merge!( _table: @base.table_name )
9
9
  end
10
10
 
11
11
  def where( params )
@@ -1,3 +1,3 @@
1
1
  module GreyscaleRecord
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: greyscale_record
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
  - Greg Orlov