lib/inline_translation/models/translation.rb
module InlineTranslation
module Models
class Translation < ActiveRecord::Base
belongs_to :translatable, polymorphic: true
scope :to_language, ->(language) { where language: language }
validates_presence_of :translatable, :language, :field, :translation
end
end
end