serialize_variants 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/init.rb +2 -0
- data/lib/serialize_variants.rb +3 -3
- data/rails/init.rb +0 -1
- metadata +1 -1
data/Rakefile
CHANGED
data/init.rb
CHANGED
data/lib/serialize_variants.rb
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
|
2
|
-
#
|
1
|
+
require "active_record"
|
3
2
|
|
4
3
|
module SerializeVariants
|
5
4
|
module Variants
|
6
|
-
include ActiveModel::Serialization
|
7
5
|
module ClassMethods
|
8
6
|
def short_serialize_options(options=nil)
|
9
7
|
@short_serialize_options = options if options
|
@@ -34,3 +32,5 @@ module SerializeVariants
|
|
34
32
|
end
|
35
33
|
end
|
36
34
|
end
|
35
|
+
|
36
|
+
::ActiveRecord::Base.send :include, SerializeVariants::Variants
|
data/rails/init.rb
CHANGED