Sha256: f08e3842d3bb0f4e3e5292961f45ca4ab8a1f45fa66cd34812e4433be420886f
Contents?: true
Size: 284 Bytes
Versions: 4
Compression:
Stored size: 284 Bytes
Contents
class Interpret::SearchController < Interpret::BaseController def perform t = Interpret::Translation.arel_table @translations = Interpret::Translation.locale(I18n.locale).where(t[:key].matches("%#{params[:key]}%").and(t[:value].matches("%#{params[:value]}%")) ) end end
Version data entries
4 entries across 4 versions & 1 rubygems