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