Sha256: 6150eecf7b8c130701a94e2241f24292a46db420ec24201fb81c4bc752510cf9
Contents?: true
Size: 400 Bytes
Versions: 1
Compression:
Stored size: 400 Bytes
Contents
require_relative 'rails_base' module ::RoCommands class Model < RailsBase desc usage('delete_all'), '' def delete_all(mod) model(mod).delete_all end desc usage("check"), "" def check(mod) model(mod).all.each do |record| Out.out(record.inspect) end end private def model(mod) Object.const_get(:"#{mod.camelize}") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rrjj-0.0.1 | lib/ro_commands/model.rb |