flipper-active_record 1.5.0.rc2 → 1.5.0
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a70f37c1aa1a94546fb4f27228eabe7c776fc9b4090fd2768a2d737b6e9e16e
|
|
4
|
+
data.tar.gz: 1a0412c1c15b7e987a773763050a409b2ca6230a70a38d18057351745a8453da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 93a35ae7d3ca95f1f234166d2e4883679352ca17d17b3d3a1535211ffea8d7db7101f6ab8ef075db0bedbd4b2b6a32793cecd919aaf8fb035b7c879fcf965059
|
|
7
|
+
data.tar.gz: 7956bfce2879a152478362469b4b86e4163d862843c91c4a93ea3f231bea57afe0e0b2acbd7acde990ba08e40c2d8987e58f95defeb80531be18df8c0049c5e3
|
|
@@ -245,8 +245,16 @@ module Flipper
|
|
|
245
245
|
def model_class(default_class, table_prefix, table_name)
|
|
246
246
|
return default_class if table_prefix.nil?
|
|
247
247
|
|
|
248
|
-
|
|
248
|
+
# Subclass the abstract Model, not default_class. A subclass of a
|
|
249
|
+
# concrete model loads its parent's columns too, which fails when
|
|
250
|
+
# only the prefixed tables exist.
|
|
251
|
+
Class.new(Model) do
|
|
249
252
|
self.table_name = "#{table_prefix}#{table_name}"
|
|
253
|
+
|
|
254
|
+
# Validators declared on ActiveRecord::Base already come through Model.
|
|
255
|
+
(default_class.validators - Model.validators).each do |validator|
|
|
256
|
+
validates_with validator.class, validator.options.merge(attributes: validator.attributes)
|
|
257
|
+
end
|
|
250
258
|
end
|
|
251
259
|
end
|
|
252
260
|
|
data/lib/flipper/version.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<%
|
|
2
|
-
migration_class = respond_to?(:migration_class_name, true) ? migration_class_name
|
|
2
|
+
migration_class = respond_to?(:migration_class_name, true) ? migration_class_name : 'CreateFlipperTables'
|
|
3
3
|
feature_table = respond_to?(:feature_table_name, true) ? feature_table_name : :flipper_features
|
|
4
4
|
gate_table = respond_to?(:gate_table_name, true) ? gate_table_name : :flipper_gates
|
|
5
5
|
feature_index = respond_to?(:feature_index_name, true) ? feature_index_name : nil
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: flipper-active_record
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.5.0
|
|
4
|
+
version: 1.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Nunemaker
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: flipper
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 1.5.0
|
|
19
|
+
version: 1.5.0
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 1.5.0
|
|
26
|
+
version: 1.5.0
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: activerecord
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -66,7 +66,7 @@ metadata:
|
|
|
66
66
|
homepage_uri: https://www.flippercloud.io
|
|
67
67
|
source_code_uri: https://github.com/flippercloud/flipper
|
|
68
68
|
bug_tracker_uri: https://github.com/flippercloud/flipper/issues
|
|
69
|
-
changelog_uri: https://github.com/flippercloud/flipper/releases/tag/v1.5.0
|
|
69
|
+
changelog_uri: https://github.com/flippercloud/flipper/releases/tag/v1.5.0
|
|
70
70
|
funding_uri: https://github.com/sponsors/flippercloud
|
|
71
71
|
post_install_message:
|
|
72
72
|
rdoc_options: []
|