housekeeper-has_activity 0.4.3 → 0.4.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/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 4
4
- :patch: 3
4
+ :patch: 4
data/has_activity.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{has_activity}
8
- s.version = "0.4.3"
8
+ s.version = "0.4.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Cary Dunn", "Carl Burton"]
data/init.rb CHANGED
@@ -1,3 +1 @@
1
- # Include hook code here
2
- require 'has_activity'
3
- ActiveRecord::Base.send(:include, Elctech::Has::Activity)
1
+ require File.dirname(__FILE__) + "/rails/init"
data/lib/has_activity.rb CHANGED
@@ -6,9 +6,7 @@
6
6
  # HasActivity
7
7
 
8
8
  require 'core_ext'
9
- require File.expand_path(File.join( File.dirname( __FILE__ ), '..', 'init.rb' ))
10
9
 
11
- module Elctech
12
10
  module Has #:nodoc:
13
11
  module Activity #:nodoc:
14
12
  def self.included(base)
@@ -23,8 +21,8 @@ module Elctech
23
21
 
24
22
  def has_activity(options={})
25
23
  options[:by] ||= "created_at"
26
- include Elctech::Has::Activity::InstanceMethods
27
- extend Elctech::Has::Activity::SingletonMethods
24
+ include Has::Activity::InstanceMethods
25
+ extend Has::Activity::SingletonMethods
28
26
 
29
27
  self.activity_options = options
30
28
  end
@@ -230,4 +228,3 @@ module Elctech
230
228
 
231
229
  end
232
230
  end
233
- end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: housekeeper-has_activity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cary Dunn