Method: HeartSeed::DbSeed.parse_string_or_array_arg
- Defined in:
- lib/heart_seed/db_seed.rb
.parse_string_or_array_arg(tables) ⇒ Object
146 147 148 149 150 151 |
# File 'lib/heart_seed/db_seed.rb', line 146 def self.parse_string_or_array_arg(tables) return [] unless tables return tables if tables.class == Array tables.class == String ? tables.split(",") : [] end |