active_record-framing 0.1.0.pre.5 → 0.1.0.pre.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/active_record/framing/core_extension.rb +12 -0
- data/lib/active_record/framing/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3a82c08956116555faae0d8aa11a5faaa4a848f14ba048fcdf0f02098ae6bac
|
4
|
+
data.tar.gz: a12376394a7995c2dbc3227fbeb877553f7e3ee11e12cfc7a7238c41187d371f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f70fb299b5d86d342aed612b11793bbcdba78083a629cb08e68e5bd84d15fedae6c30f0cdad691f97e379bb4e64b2d0fcab65623230d25e5e7c3f18d0d9d450e
|
7
|
+
data.tar.gz: 454cc8d8aabccec93899e1c816726dc20a04b2a5fa4eb24f3a48649d6071ad0dbd810effef4b7a09fcf81c6fd1cc6d842d51265c8c18295f4da5bf043c95348c
|
data/README.md
CHANGED
@@ -63,6 +63,18 @@ module ActiveRecord
|
|
63
63
|
return @registry[frame_type][model.name]
|
64
64
|
end
|
65
65
|
|
66
|
+
# def value_for(frame_type, model, skip_inherited_frame = false)
|
67
|
+
# raise_invalid_frame_type!(frame_type)
|
68
|
+
# return @registry[frame_type][model.name] if skip_inherited_frame
|
69
|
+
# klass = model
|
70
|
+
# base = model.base_class
|
71
|
+
# while klass <= base
|
72
|
+
# value = @registry[frame_type][klass.name]
|
73
|
+
# return value if value
|
74
|
+
# klass = klass.superclass
|
75
|
+
# end
|
76
|
+
# end
|
77
|
+
|
66
78
|
# Sets the +value+ for a given +frame_type+ and +model+.
|
67
79
|
def set_value_for(frame_type, model, value)
|
68
80
|
raise_invalid_frame_type!(frame_type)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_record-framing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.pre.
|
4
|
+
version: 0.1.0.pre.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dale Stevens
|
@@ -179,7 +179,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
179
179
|
requirements:
|
180
180
|
- - ">="
|
181
181
|
- !ruby/object:Gem::Version
|
182
|
-
version: '2.
|
182
|
+
version: '2.3'
|
183
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
185
|
- - ">"
|