Permalink
Browse files

Fixing issue with save

  • Loading branch information...
1 parent d8d03d1 commit e535a0506a513f3d21a1c31fc498dbad6db5e816 @samlown committed May 22, 2009
Showing with 5 additions and 5 deletions.
  1. +1 −1 README.rdoc
  2. +4 −4 lib/translate_columns.rb
View
@@ -137,7 +137,7 @@ the Rails I18n extension, this is no longer necessary.
== Upgrading
-If your using an older version of Translate Columns, then you'll need to perform an
+If you're using an older version of Translate Columns, then you'll need to perform an
upgrade and migration to use the fabulous new I18n Rails code. Fortunately, this is
very easy to do.
View
@@ -156,16 +156,16 @@ def translation
# child (inheriting) class will infact look here before looking to
# ActiveRecord for the real 'save'. This method should therefore
# be safely overridden if needed.
- def save
+ def save(options = nil)
save_and_disable_translation
- r = super
+ r = super(options)
enable_translation
r
end
- def save!
+ def save!(options = nil)
save_and_disable_translation!
- r = super
+ r = super(options)
enable_translation
r
rescue

0 comments on commit e535a05

Please sign in to comment.