Sha256: d99f42fdf1e55762839f9b1c1259cc61a0b22c7678fc68e31ae9a00ca75854b5

Contents?: true

Size: 214 Bytes

Versions: 4

Compression:

Stored size: 214 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activerecord-mlang-0.0.8 lib/active_record/mlang/lang.rb
activerecord-mlang-0.0.7 lib/active_record/mlang/lang.rb
activerecord-mlang-0.0.6 lib/active_record/mlang/lang.rb
activerecord-mlang-0.0.5 lib/active_record/mlang/lang.rb