Sha256: cead277663da215cc1a8fe9b56366b81e4e02e18fefea8eb3422346f3d5b9563

Contents?: true

Size: 299 Bytes

Versions: 2

Compression:

Stored size: 299 Bytes

Contents

module RestPack::Service
  class Configuration
    attr_accessor :db_table_prefix, :application_id

    def initialize
      @db_table_prefix = 'restpack_'
      @application_id = 1
    end

    def prefix_db_table(db_table_name)
      "#{@db_table_prefix}#{db_table_name}".to_sym
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
restpack_service-0.0.35 lib/restpack_service/configuration.rb
restpack_service-0.0.34 lib/restpack_service/configuration.rb