preflex 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/preflex/preference.rb +2 -2
- data/lib/preflex/version.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: 67d3667d77a7d0425f91af0a9ce6fe20c7d43e575c86252ef771c4ab334cf507
|
4
|
+
data.tar.gz: 6b388da6b8e195476a0d3bd96959705a7860a7ae490e1a7adb63d3da9a6b1a83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c0d73156f6dd65beb0e57a09cf8f98c1551999f2aab7f107d6f59f22585eba51f434ecf4e16c50ceb32676e261de25476837698dca37a6cb002ea1da62cd37e
|
7
|
+
data.tar.gz: 14682868598d2e979abafda7f0e53fd252a93d57ed3d57ccefb99c9c121d03b4205f1d627b786ac5a57256ccac4a117212257dcdccbf9a344db64f858f4bff5d
|
@@ -31,7 +31,7 @@ module Preflex
|
|
31
31
|
@preferences.add(name)
|
32
32
|
|
33
33
|
store_attribute(:data, name, type, default: default)
|
34
|
-
store_attribute(:data, "#{name}_updated_at_epoch".to_sym, :
|
34
|
+
store_attribute(:data, "#{name}_updated_at_epoch".to_sym, :big_integer, default: 0)
|
35
35
|
end
|
36
36
|
|
37
37
|
def self.current_owner(controller_instance)
|
@@ -67,7 +67,7 @@ module Preflex
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def self.ensure_preference_exists(name)
|
70
|
-
raise "Preference #{name} was not defined. Make sure you define it (e.g. `preference :#{name}, :
|
70
|
+
raise "Preference #{name} was not defined. Make sure you define it (e.g. `preference :#{name}, :big_integer, default: 10`)" unless @preferences&.include?(name)
|
71
71
|
end
|
72
72
|
end
|
73
73
|
end
|
data/lib/preflex/version.rb
CHANGED