Browse files

Fix typo.

  • Loading branch information...
1 parent 5ddffaa commit 20d7f5baac33310d6c897ecd8a4c4dcf2ed3abf8 @iHiD committed Feb 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/super_sti/hook.rb
View
2 lib/super_sti/hook.rb
@@ -26,7 +26,7 @@ def has_extra_data(options = {}, &block)
self.const_set "Data", klass
# Add a reference to a data object that gets created when this is created
- has_one :data, :class_name => "#{self.name}::Data", :foreign_key => options[:foreign_key], :readonly => false, :autosave => true, :dependant => :destroy
+ has_one :data, :class_name => "#{self.name}::Data", :foreign_key => options[:foreign_key], :readonly => false, :autosave => true, :dependent => :destroy
before_create :get_data
# A helper method which gets the existing data or builds a new object

0 comments on commit 20d7f5b

Please sign in to comment.