serialize_variants 0.0.3 → 0.0.4

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.
data/Rakefile CHANGED
@@ -34,7 +34,7 @@ PKG_FILES = FileList[
34
34
 
35
35
  spec = Gem::Specification.new do |s|
36
36
  s.name = "serialize_variants"
37
- s.version = "0.0.3"
37
+ s.version = "0.0.4"
38
38
  s.author = "Nicolas Goy"
39
39
  s.email = "kuon@goyman.com"
40
40
  s.homepage = "http://goyman.com/"
data/init.rb CHANGED
@@ -0,0 +1,2 @@
1
+
2
+ require File.dirname(__FILE__) + "/rails/init.rb"
@@ -1,9 +1,7 @@
1
- # SerializeVariants
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
@@ -1,4 +1,3 @@
1
1
  # Include hook code here
2
2
  require 'serialize_variants'
3
3
 
4
- ActiveRecord::Base.send(:include, SerializeVariants::Variants)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: serialize_variants
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nicolas Goy