Sha256: 5ceec59e2fab0c2e77c7518c9f7cd50ec7b1de43a74157a450740cbc70c79206

Contents?: true

Size: 473 Bytes

Versions: 9

Compression:

Stored size: 473 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(name)
          name.to_s.tr('.', '_')
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dbee-active_record-1.1.0 lib/dbee/providers/active_record_provider/safe_alias_maker.rb
dbee-active_record-1.0.4 lib/dbee/providers/active_record_provider/safe_alias_maker.rb
dbee-active_record-1.0.3 lib/dbee/providers/active_record_provider/safe_alias_maker.rb
dbee-active_record-1.0.2 lib/dbee/providers/active_record_provider/safe_alias_maker.rb
dbee-active_record-1.0.1 lib/dbee/providers/active_record_provider/safe_alias_maker.rb
dbee-active_record-1.0.0 lib/dbee/providers/active_record_provider/safe_alias_maker.rb
dbee-active_record-1.0.0.pre.alpha.2 lib/dbee/providers/active_record_provider/safe_alias_maker.rb
dbee-active_record-1.0.0.pre.alpha.1 lib/dbee/providers/active_record_provider/safe_alias_maker.rb
dbee-active_record-1.0.0.pre.alpha lib/dbee/providers/active_record_provider/safe_alias_maker.rb