Sha256: 457d1abba164f2075bcf6c325a8a41aa72b85dc1052ad29f34fb0d91acfc1772
Contents?: true
Size: 485 Bytes
Versions: 10
Compression:
Stored size: 485 Bytes
Contents
module Pah module Templates class Inflection < Pah::Template def call api_acronym_config = <<API_ACRONYM ActiveSupport::Inflector.inflections do |inflect| inflect.acronym 'API' end API_ACRONYM inject_into_file 'config/initializers/inflections.rb', api_acronym_config, after: /'RESTful'\n#\ end\n/, verbose: false git add: 'config/initializers/inflections.rb' git_commit 'Add API acronym to inflections.rb.' end end end end
Version data entries
10 entries across 10 versions & 1 rubygems