Sha256: b1579574287f5acfe25563db150a445d79f6e798a497d9ca768b19ac375146ea
Contents?: true
Size: 516 Bytes
Versions: 38
Compression:
Stored size: 516 Bytes
Contents
module Tramway::Admin::RussianCasesHelper def case_word(model_name, case_name) word_case = I18n.t("cases.#{model_name.name.underscore}.#{case_name}") return word_case if word_case.present? raise "There is not #{case_name} implementation for \"#{model_name}\"" end def genitive(word) case_word word, :genitive end def instrumental(word) case_word word, :instrumental end def dative(word) case_word word, :dative end def plural(word) case_word word, :plural end end
Version data entries
38 entries across 38 versions & 1 rubygems