acts_as_commentable 2.0.2 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- require 'activerecord'
1
+ require 'active_record'
2
2
 
3
3
  # ActsAsCommentable
4
4
  module Juixe
@@ -10,8 +10,8 @@ module Juixe
10
10
  end
11
11
 
12
12
  module ClassMethods
13
- def acts_as_commentable
14
- has_many :comments, :as => :commentable, :dependent => :destroy
13
+ def acts_as_commentable(options={})
14
+ has_many :comments, {:as => :commentable, :dependent => :destroy}.merge(options)
15
15
  include Juixe::Acts::Commentable::InstanceMethods
16
16
  extend Juixe::Acts::Commentable::SingletonMethods
17
17
  end
File without changes
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_commentable
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ prerelease: false
5
+ segments:
6
+ - 2
7
+ - 1
8
+ - 0
9
+ version: 2.1.0
5
10
  platform: ruby
6
11
  authors:
7
12
  - Cosmin Radoi, Jack Dempsey, Xelipe, Chris Eppstein
@@ -9,7 +14,7 @@ autorequire: acts_as_commentable
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-07-01 00:00:00 -04:00
17
+ date: 2010-10-06 00:00:00 -04:00
13
18
  default_executable:
14
19
  dependencies: []
15
20
 
@@ -31,7 +36,7 @@ files:
31
36
  - lib/acts_as_commentable.rb
32
37
  - lib/comment_methods.rb
33
38
  - lib/commentable_methods.rb
34
- - tasks/acts_as_commentable_tasks.rake
39
+ - lib/tasts/acts_as_commentable_tasks.rake
35
40
  - init.rb
36
41
  - install.rb
37
42
  has_rdoc: true
@@ -44,21 +49,25 @@ rdoc_options: []
44
49
  require_paths:
45
50
  - lib
46
51
  required_ruby_version: !ruby/object:Gem::Requirement
52
+ none: false
47
53
  requirements:
48
54
  - - ">="
49
55
  - !ruby/object:Gem::Version
56
+ segments:
57
+ - 0
50
58
  version: "0"
51
- version:
52
59
  required_rubygems_version: !ruby/object:Gem::Requirement
60
+ none: false
53
61
  requirements:
54
62
  - - ">="
55
63
  - !ruby/object:Gem::Version
64
+ segments:
65
+ - 0
56
66
  version: "0"
57
- version:
58
67
  requirements: []
59
68
 
60
69
  rubyforge_project:
61
- rubygems_version: 1.3.5
70
+ rubygems_version: 1.3.7
62
71
  signing_key:
63
72
  specification_version: 3
64
73
  summary: Plugin/gem that provides comment functionality