Sha256: 3b838e300879cfcbe2f4b640c5b1bb065426c65096a068a02e1c0ccb7a49caae

Contents?: true

Size: 348 Bytes

Versions: 73

Compression:

Stored size: 348 Bytes

Contents

require 'rubocop-rspec'

module Ws
  module Style
    module Inflector
      def camel_to_snake_case(string)
        if defined?(ActiveSupport::Inflector)
          ActiveSupport::Inflector.underscore(string)
        else
          super(string)
        end
      end
    end
  end
end

::RuboCop::Cop::RSpec::FilePath.prepend Ws::Style::Inflector

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
ws-style-7.4.4 lib/ws/style/inflector.rb
ws-style-7.4.3 lib/ws/style/inflector.rb
ws-style-7.4.2 lib/ws/style/inflector.rb
ws-style-7.4.1 lib/ws/style/inflector.rb
ws-style-7.4.0 lib/ws/style/inflector.rb
ws-style-7.3.0 lib/ws/style/inflector.rb
ws-style-7.2.1 lib/ws/style/inflector.rb
ws-style-7.2.0 lib/ws/style/inflector.rb
ws-style-7.1.3 lib/ws/style/inflector.rb
ws-style-7.1.2 lib/ws/style/inflector.rb
ws-style-7.1.1 lib/ws/style/inflector.rb
ws-style-7.1.0 lib/ws/style/inflector.rb
ws-style-7.0.0 lib/ws/style/inflector.rb
ws-style-6.14.7 lib/ws/style/inflector.rb
ws-style-6.14.6 lib/ws/style/inflector.rb
ws-style-6.14.5 lib/ws/style/inflector.rb
ws-style-6.14.4 lib/ws/style/inflector.rb
ws-style-6.14.3 lib/ws/style/inflector.rb
ws-style-6.14.2 lib/ws/style/inflector.rb
ws-style-6.14.1 lib/ws/style/inflector.rb