Sha256: 756e7f1bd35f3dba5f4bd46c2cd661b02c1e232c24d9ee7b728b86869cecb554

Contents?: true

Size: 488 Bytes

Versions: 8

Compression:

Stored size: 488 Bytes

Contents

module Jets
  class Inflections
    class << self
      def load!
        ActiveSupport::Inflector.inflections(:en) do |inflect|
          base_inflections.each do |k,v|
            inflect.irregular k,v
          end
          # Users can add custom inflections
          Jets.config.inflections.irregular.each do |k,v|
            inflect.irregular k,v
          end
        end
      end

      def base_inflections
        {
          sns: 'sns'
        }
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jets-0.10.4 lib/jets/inflections.rb
jets-0.10.3 lib/jets/inflections.rb
jets-0.10.2 lib/jets/inflections.rb
jets-0.10.1 lib/jets/inflections.rb
jets-0.10.0 lib/jets/inflections.rb
jets-0.9.2 lib/jets/inflections.rb
jets-0.9.1 lib/jets/inflections.rb
jets-0.9.0 lib/jets/inflections.rb