gallery options

This commit is contained in:
Fu Matthew committed 2012-12-28 15:30:46 +08:00
1 parent 2a122c7f5c
commit baf1240b76
15 files changed
+66 -17

No files matched your search

+9
View File
@@ -319,4 +319,13 @@ namespace :migrate do
end
end
task :add_widget_options_to_gallery => :environment do
a = ModuleApp.where(:key=>'gallery').first
a.widget_options = {"widget1"=>{"vertical"=>[1, 2], "horizontal"=>[1, 2, 3, 4, 5, 6]}}
a.widget_options_fields_i18n = {"widget1"=>{"vertical"=>"gallery.widget_option.vertical", "horizontal"=>"gallery.widget_option.horizontal"}}
a.save
end
end