Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix typo.

  • Loading branch information...
commit 20d7f5baac33310d6c897ecd8a4c4dcf2ed3abf8 1 parent 5ddffaa
@iHiD authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.