require "active_record/mlang" module ActiveRecord module Mlang class Lang < ActiveRecord::Base include ActiveRecord::Mlang def self.[] code find_by(code: code) end end end end