laurynasl-sunflower-comments 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sunflower-comments.rb +2 -2
- metadata +1 -1
data/lib/sunflower-comments.rb
CHANGED
@@ -2,7 +2,7 @@ if defined?(Merb::Plugins)
|
|
2
2
|
|
3
3
|
$:.unshift File.dirname(__FILE__)
|
4
4
|
|
5
|
-
|
5
|
+
dependency 'merb-slices', :immediate => true
|
6
6
|
Merb::Plugins.add_rakefiles "sunflower-comments/merbtasks", "sunflower-comments/slicetasks", "sunflower-comments/spectasks"
|
7
7
|
|
8
8
|
# Register the Slice for the current host application
|
@@ -87,7 +87,7 @@ if defined?(Merb::Plugins)
|
|
87
87
|
def self.included(other)
|
88
88
|
SunflowerComments.classes << other
|
89
89
|
SunflowerComments.classes_hash[other.table_name.to_s] = other
|
90
|
-
other.
|
90
|
+
other.many_to_one :comments, :key => :parent_id, :conditions => {:parent_table => other.table_name.to_s}
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|