Permalink
Browse files

Add translations for Spree::ShippingMethod (no UI controls yet)

  • Loading branch information...
1 parent 1a83716 commit 3f52380f807c80d5d74aa6806ec810565012be25 @jbourassa jbourassa committed Jun 28, 2012
@@ -0,0 +1,5 @@
+module Spree
+ ShippingMethod.class_eval do
+ translates :name
+ end
+end
@@ -0,0 +1,9 @@
+class AddTranslationsToShippingMethods < ActiveRecord::Migration
+ def up
+ Spree::ShippingMethod.create_translation_table!(:name => :string)
+ end
+
+ def down
+ Spree::ShippingMethod.drop_translation_table!
+ end
+end

0 comments on commit 3f52380

Please sign in to comment.