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-6.13.6 lib/ws/style/inflector.rb
ws-style-6.13.5 lib/ws/style/inflector.rb
ws-style-6.13.4 lib/ws/style/inflector.rb
ws-style-6.13.3 lib/ws/style/inflector.rb
ws-style-6.13.2 lib/ws/style/inflector.rb
ws-style-6.13.1 lib/ws/style/inflector.rb
ws-style-6.13.0 lib/ws/style/inflector.rb
ws-style-6.12.4 lib/ws/style/inflector.rb
ws-style-6.12.3 lib/ws/style/inflector.rb
ws-style-6.12.2 lib/ws/style/inflector.rb
ws-style-6.12.1 lib/ws/style/inflector.rb
ws-style-6.12.0 lib/ws/style/inflector.rb
ws-style-6.11.3 lib/ws/style/inflector.rb
ws-style-6.11.2 lib/ws/style/inflector.rb
ws-style-6.11.1 lib/ws/style/inflector.rb
ws-style-6.11.0 lib/ws/style/inflector.rb
ws-style-6.10.1 lib/ws/style/inflector.rb
ws-style-6.10.0 lib/ws/style/inflector.rb
ws-style-6.9.8 lib/ws/style/inflector.rb
ws-style-6.9.7 lib/ws/style/inflector.rb