brick 1.0.30 → 1.0.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/brick/extensions.rb +4 -1
- data/lib/brick/version_number.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f529097f82af103af54ae472e226244ce8932b64cf974b836d1d23be6cedfbce
|
4
|
+
data.tar.gz: 1561bea9cdcdd366d2ef9798cff36f3a74f58768f1f14be5c2bfbf4f40feac8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5d812af4ba7eadae06e28bb9686ea60b79f9df721a51cbddbb0ce87d6abfe78e0675b45446768bd2460f00c1f02bba5276d21d9ec96345dcffa8079d87f2ec0
|
7
|
+
data.tar.gz: b7ff59c6229dac732eb06a01c59d4a2913675b02a0a8a54106c2dfdcf965ea58cff5dc6d8dfb1c54fb8d9569fa31f2d8217ed281593bdbc167e89d42178225dd
|
data/lib/brick/extensions.rb
CHANGED
@@ -1042,7 +1042,10 @@ module ActiveRecord::ConnectionHandling
|
|
1042
1042
|
|
1043
1043
|
def _brick_reflect_tables
|
1044
1044
|
if (relations = ::Brick.relations).empty?
|
1045
|
-
|
1045
|
+
# Hopefully our initializer is named exactly this!
|
1046
|
+
if File.exist?(brick_initializer = Rails.root.join('config/initializers/brick.rb'))
|
1047
|
+
load brick_initializer
|
1048
|
+
end
|
1046
1049
|
# Only for Postgres? (Doesn't work in sqlite3)
|
1047
1050
|
# puts ActiveRecord::Base.execute_sql("SELECT current_setting('SEARCH_PATH')").to_a.inspect
|
1048
1051
|
|
data/lib/brick/version_number.rb
CHANGED