module TranslatableRecords::Extensions::ActiveRecord::Base::ClassMethods

Public Instance Methods

translatable?() click to toggle source
# File lib/translatable_records/extensions/active_record/base.rb, line 9
def translatable?
  translations.any?
end
translate(*attributes) click to toggle source
# File lib/translatable_records/extensions/active_record/base.rb, line 17
def translate(*attributes)
  builder = Builder.new(self)
  builder.define attributes
end
translations() click to toggle source
# File lib/translatable_records/extensions/active_record/base.rb, line 13
def translations
  @translations ||= []
end