Module: Cms::Namespacing

Defined in:
lib/cms/behaviors/namespacing.rb

Class Method Summary collapse

Class Method Details

.prefix(unprefixed_name) ⇒ Object



34
35
36
# File 'lib/cms/behaviors/namespacing.rb', line 34

def self.prefix(unprefixed_name)
  self.prefixed_table_name(unprefixed_name)
end

.prefixed_table_name(unprefixed_name) ⇒ Object



31
32
33
# File 'lib/cms/behaviors/namespacing.rb', line 31

def self.prefixed_table_name(unprefixed_name)
  "#{Cms.table_prefix}#{unprefixed_name}"
end