black_and_white 0.1.3 → 0.1.4
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 +4 -4
- data/README.md +1 -1
- data/lib/black_and_white/helpers/database.rb +3 -3
- data/lib/black_and_white/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e750b7cb803ff4df4d3d720e72c2b6334a480202
|
|
4
|
+
data.tar.gz: ba46e75692f5ddb5a926a92212b8ca3252158234
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 06b610793aec57424575d98bd1f68b8a31375af915f66ce2d693179c7e1972b1ae6217c3ef4425944bb8eccf43ce5dcdc6c4ed1945931288fb60ae2585b09260
|
|
7
|
+
data.tar.gz: 5cff78100f770c21721ba814d23c2efcbb45de4965973424420454ac769e1f088c659b386597be8a3b9892413c25b962d1b4882596d8a1578eb6d551bc36c9fb
|
data/README.md
CHANGED
|
@@ -16,7 +16,7 @@ RUBY
|
|
|
16
16
|
def bw_relations_table_data
|
|
17
17
|
<<RUBY
|
|
18
18
|
t.references :#{bw_tests_class_table}, index: true
|
|
19
|
-
t.references :#{
|
|
19
|
+
t.references :#{bw_tests_table_name}, index: true
|
|
20
20
|
RUBY
|
|
21
21
|
end
|
|
22
22
|
|
|
@@ -25,7 +25,7 @@ RUBY
|
|
|
25
25
|
end
|
|
26
26
|
|
|
27
27
|
def bw_tests_table_name
|
|
28
|
-
BlackAndWhite.config.bw_main_table
|
|
28
|
+
BlackAndWhite.config.bw_main_table.to_s.singularize
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def bw_tests_class
|
|
@@ -33,7 +33,7 @@ RUBY
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
def bw_tests_class_table
|
|
36
|
-
BlackAndWhite.config.bw_class_table
|
|
36
|
+
BlackAndWhite.config.bw_class_table.to_s.singularize
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
def migration_version
|