Sha256: acab1bd917dd3f8e541522a5c0bcc6420bb3cb5fc6e6324919ffeb7c0d7e6928

Contents?: true

Size: 339 Bytes

Versions: 8

Compression:

Stored size: 339 Bytes

Contents

module Landable
  module Traffic
    module TableName
      extend ActiveSupport::Concern 

      included do
        model_name = self.model_name.element.pluralize
        schema_name = "#{Landable.configuration.database_schema_prefix}landable_traffic"
        self.table_name = "#{schema_name}.#{model_name}"
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
landable-1.9.2 app/models/concerns/landable/traffic/table_name.rb
landable-1.9.1 app/models/concerns/landable/traffic/table_name.rb
landable-1.9.0 app/models/concerns/landable/traffic/table_name.rb
landable-1.9.0.rc2 app/models/concerns/landable/traffic/table_name.rb
landable-1.9.0.rc1 app/models/concerns/landable/traffic/table_name.rb
landable-1.8.0 app/models/concerns/landable/traffic/table_name.rb
landable-1.7.1.rc1 app/models/concerns/landable/traffic/table_name.rb
landable-1.7.0 app/models/concerns/landable/traffic/table_name.rb