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.
Files changed (2) hide show
  1. data/lib/sunflower-comments.rb +2 -2
  2. metadata +1 -1
@@ -2,7 +2,7 @@ if defined?(Merb::Plugins)
2
2
 
3
3
  $:.unshift File.dirname(__FILE__)
4
4
 
5
- load_dependency 'merb-slices'
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.has_many :comments, :key => :parent_id, :conditions => {:parent_table => other.table_name.to_s}
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: laurynasl-sunflower-comments
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
  - Laurynas Liutkus