Sha256: bc361ee377e2508f3a5a91585dcc67878639fb4ac22397b8c65fec9ee87de123

Contents?: true

Size: 591 Bytes

Versions: 16

Compression:

Stored size: 591 Bytes

Contents

# -*- encoding: utf-8 -*-

commute_method_types = [
  { name: 'Unknown',  name_ja: '不明' },
  { name: 'Walking',  name_ja: '歩行' },
  { name: 'Bicycle',  name_ja: '自転車' },
  { name: 'Train',    name_ja: '列車' },
  { name: 'Bus',      name_ja: 'バス' },
  { name: 'Car',      name_ja: '車' },
  { name: 'Metro',    name_ja: '地下鉄' }
]

commute_method_types.each do |type|
  I18n.locale = :en
  commute_method_type = Gaku::CommuteMethodType.where(name: type[:name]).first_or_create!

  I18n.locale = :ja
  commute_method_type.update_attributes(name: type[:name_ja])
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
gaku_core-0.3.0 db/default/gaku/commute_method_types.rb
gaku_core-0.3.0.pre.4 db/default/gaku/commute_method_types.rb
gaku_core-0.3.0.pre.3 db/default/gaku/commute_method_types.rb
gaku_core-0.3.0.pre.2 db/default/gaku/commute_method_types.rb
gaku_core-0.3.0.pre.1 db/default/gaku/commute_method_types.rb
gaku_core-0.3.0.pre.0 db/default/gaku/commute_method_types.rb
gaku-0.2.4 core/db/default/gaku/commute_method_types.rb
gaku_core-0.2.4 db/default/gaku/commute_method_types.rb
gaku-0.2.3 core/db/default/gaku/commute_method_types.rb
gaku_core-0.2.3 db/default/gaku/commute_method_types.rb
gaku-0.2.2 core/db/default/gaku/commute_method_types.rb
gaku_core-0.2.2 db/default/gaku/commute_method_types.rb
gaku-0.2.1 core/db/default/gaku/commute_method_types.rb
gaku_core-0.2.1 db/default/gaku/commute_method_types.rb
gaku-0.2.0 core/db/default/gaku/commute_method_types.rb
gaku_core-0.2.0 db/default/gaku/commute_method_types.rb