jackdempsey-acts_as_commentable 2.0.1 → 2.0.2
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.
@@ -4,6 +4,8 @@ class Comment < ActiveRecord::Base
|
|
4
4
|
|
5
5
|
belongs_to :commentable, :polymorphic => true
|
6
6
|
|
7
|
+
default_scope :order => 'created_at ASC'
|
8
|
+
|
7
9
|
# NOTE: install the acts_as_votable plugin if you
|
8
10
|
# want user to vote on the quality of comments.
|
9
11
|
#acts_as_voteable
|
@@ -11,4 +13,4 @@ class Comment < ActiveRecord::Base
|
|
11
13
|
# NOTE: Comments belong to a user
|
12
14
|
belongs_to :user
|
13
15
|
|
14
|
-
end
|
16
|
+
end
|
data/lib/commentable_methods.rb
CHANGED
@@ -11,7 +11,7 @@ module Juixe
|
|
11
11
|
|
12
12
|
module ClassMethods
|
13
13
|
def acts_as_commentable
|
14
|
-
has_many :comments, :as => :commentable, :dependent => :destroy
|
14
|
+
has_many :comments, :as => :commentable, :dependent => :destroy
|
15
15
|
include Juixe::Acts::Commentable::InstanceMethods
|
16
16
|
extend Juixe::Acts::Commentable::SingletonMethods
|
17
17
|
end
|
@@ -63,4 +63,4 @@ module Juixe
|
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
66
|
-
ActiveRecord::Base.send(:include, Juixe::Acts::Commentable)
|
66
|
+
ActiveRecord::Base.send(:include, Juixe::Acts::Commentable)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jackdempsey-acts_as_commentable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cosmin Radoi, Jack Dempsey, Xelipe, Chris Eppstein
|
@@ -38,6 +38,7 @@ files:
|
|
38
38
|
- install.rb
|
39
39
|
has_rdoc: false
|
40
40
|
homepage: http://www.juixe.com/techknow/index.php/2006/06/18/acts-as-commentable-plugin/
|
41
|
+
licenses:
|
41
42
|
post_install_message:
|
42
43
|
rdoc_options: []
|
43
44
|
|
@@ -58,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
59
|
requirements: []
|
59
60
|
|
60
61
|
rubyforge_project:
|
61
|
-
rubygems_version: 1.
|
62
|
+
rubygems_version: 1.3.5
|
62
63
|
signing_key:
|
63
64
|
specification_version: 3
|
64
65
|
summary: Plugin/gem that provides comment functionality
|