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

Version Path
pah-0.0.28 lib/pah/templates/inflection.rb
pah-0.0.27 lib/pah/templates/inflection.rb
pah-0.0.26 lib/pah/templates/inflection.rb
pah-0.0.25 lib/pah/templates/inflection.rb
pah-0.0.24 lib/pah/templates/inflection.rb
pah-0.0.23 lib/pah/templates/inflection.rb
pah-0.0.22 lib/pah/templates/inflection.rb
pah-0.0.21 lib/pah/templates/inflection.rb
pah-0.0.20 lib/pah/templates/inflection.rb
pah-0.0.19 lib/pah/templates/inflection.rb