Sha256: caa93bb3cda1d3ab16fafadb81c25b8f7369f0f9e7d51e83a9041c0e7f403b4b

Contents?: true

Size: 292 Bytes

Versions: 8

Compression:

Stored size: 292 Bytes

Contents

module Landable
  module TableName
    extend ActiveSupport::Concern 

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

  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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