Module: Translateable

Defined in:
lib/translateable.rb,
lib/translateable/version.rb,
lib/generators/translateable/migration_generator.rb

Defined Under Namespace

Modules: ClassMethods Classes: AttributeValue, MigrationGenerator

Constant Summary collapse

VERSION =
'0.2.2'.freeze

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
# File 'lib/translateable.rb', line 4

def self.included(base)
  base.extend ClassMethods
end

.translateable_attribute_by_name(attr) ⇒ Object



8
9
10
# File 'lib/translateable.rb', line 8

def self.translateable_attribute_by_name(attr)
  "#{attr}_translateable"
end