has_browser 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@ module HasBrowser
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 2
5
+ TINY = 3
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
 
@@ -0,0 +1,6 @@
1
+ require 'has_browser'
2
+
3
+ ActiveRecord::Base.send(:include, HasBrowser)
4
+ [ActiveRecord::Associations::HasManyAssociation, ActiveRecord::Associations::HasManyThroughAssociation].each do |c|
5
+ c.send(:include, HasBrowser::AssociationProxyMethods)
6
+ end
@@ -15,7 +15,7 @@ spec = Gem::Specification.new do |s|
15
15
  s.required_ruby_version = '>= 1.8.6'
16
16
 
17
17
  s.files = %w(MIT-LICENSE README Rakefile init.rb) +
18
- Dir.glob("{lib,test,tasks}/**/*")
18
+ Dir.glob("{lib,test,tasks,rails}/**/*")
19
19
 
20
20
  s.require_path = "lib"
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_browser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Golick
@@ -33,6 +33,7 @@ files:
33
33
  - test/test_helper.rb
34
34
  - tasks/gem.rake
35
35
  - tasks/test.rake
36
+ - rails/init.rb
36
37
  has_rdoc: false
37
38
  homepage: http://jamesgolick.com/
38
39
  post_install_message: