Sha256: 5414d1b264ca01a44b523ff9e4f1132a94909303da0661cbfcd511bf219620b2
Contents?: true
Size: 667 Bytes
Versions: 28
Compression:
Stored size: 667 Bytes
Contents
module Jets class Inflections class << self def load! ActiveSupport::Inflector.inflections(:en) do |inflect| load(inflect, base) load(inflect, custom) end end def load(inflect, inflections) inflections.each do |k,v| inflect.irregular k,v end end # base custom inflections def base { sns: 'sns', sqs: 'sqs' } end # User defined custom inflections def custom path = "#{Jets.root}/config/inflections.yml" File.exist?(path) ? Jets::Util::Yamler.load_file(path) : {} end end end end
Version data entries
28 entries across 28 versions & 1 rubygems