Sha256: d449fc05a8ff9e1d48617de559e26c67f1b651c8bee56a32a67773d0530e1a83
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
module TokyoMetro::Factory::Seed::Common::Polymorphic::TwitterAccount private def seed_twitter_account if @info.twitter_widget_id.present? and @info.twitter_account_name.present? ::TwitterAccount.create( widget_id: @info.twitter_widget_id.to_s , name: @info.twitter_account_name , operator_or_railway_id: @id , operator_or_railway_type: twitter_polymorphic_type ) end end def twitter_polymorphic_type db_class.to_s end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tokyo_metro-0.10.1 | lib/tokyo_metro/factory/seed/common/polymorphic/twitter_account.rb |