Sha256: 8b68c8079e3b728eaf387be48070672dc60a8ab3f43ab4401a9ac57a332ee40e

Contents?: true

Size: 521 Bytes

Versions: 13

Compression:

Stored size: 521 Bytes

Contents

# frozen_string_literal: true

#
# Copyright (c) 2019-present, Blue Marble Payroll, LLC
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#

module Dbee
  module Providers
    class ActiveRecordProvider
      # This class can be used when readable alias names are expected.
      class SafeAliasMaker
        def make(*parts)
          parts.flatten
               .join('_')
               .tr('.', '_')
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dbee-active_record-2.3.0 lib/dbee/providers/active_record_provider/safe_alias_maker.rb
dbee-active_record-2.2.0 lib/dbee/providers/active_record_provider/safe_alias_maker.rb
dbee-active_record-2.1.2 lib/dbee/providers/active_record_provider/safe_alias_maker.rb
dbee-active_record-2.1.1 lib/dbee/providers/active_record_provider/safe_alias_maker.rb
dbee-active_record-2.1.0.pre.alpha.1 lib/dbee/providers/active_record_provider/safe_alias_maker.rb
dbee-active_record-2.1.0.pre.alpha lib/dbee/providers/active_record_provider/safe_alias_maker.rb
dbee-active_record-2.0.4 lib/dbee/providers/active_record_provider/safe_alias_maker.rb
dbee-active_record-2.0.3 lib/dbee/providers/active_record_provider/safe_alias_maker.rb
dbee-active_record-2.0.2 lib/dbee/providers/active_record_provider/safe_alias_maker.rb
dbee-active_record-2.0.1 lib/dbee/providers/active_record_provider/safe_alias_maker.rb
dbee-active_record-2.0.0 lib/dbee/providers/active_record_provider/safe_alias_maker.rb
dbee-active_record-2.0.0.pre.alpha lib/dbee/providers/active_record_provider/safe_alias_maker.rb
dbee-active_record-1.2.0 lib/dbee/providers/active_record_provider/safe_alias_maker.rb