has_vimeo_video 0.0.2 → 0.0.3

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.
@@ -0,0 +1,9 @@
1
+ module HasVimeoVideo
2
+ class Railtie < Rails::Railtie
3
+ initializer 'has_vimeo_video.model_additions' do
4
+ ActiveSupport.on_load :active_record do
5
+ extend ModelAdditions
6
+ end
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module HasVimeoVideo
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -4,7 +4,7 @@ require 'vimeo/simple'
4
4
  require 'has_vimeo_video/version'
5
5
  require 'has_vimeo_video/vimeo_video'
6
6
  require 'has_vimeo_video/model_additions'
7
+ require "has_vimeo_video/railtie" if defined? Rails
7
8
 
8
9
  module HasVimeoVideo
9
- # Your code goes here...
10
10
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Engage
@@ -103,6 +103,7 @@ files:
103
103
  - has_vimeo_video.gemspec
104
104
  - lib/has_vimeo_video.rb
105
105
  - lib/has_vimeo_video/model_additions.rb
106
+ - lib/has_vimeo_video/railtie.rb
106
107
  - lib/has_vimeo_video/version.rb
107
108
  - lib/has_vimeo_video/vimeo_video.rb
108
109
  - spec/has_vimeo_video/model_additions_spec.rb