Sha256: e589cf2ebf172793a6f50a34e675883923a8ea7b7c92951a4e6a9b79eb1e0178

Contents?: true

Size: 182 Bytes

Versions: 1

Compression:

Stored size: 182 Bytes

Contents

require 'lazy_const'

module LazyModelConst
  include LazyConst
  def lazy_model_const(name, attrs = {})
    lazy_const name do
      find_or_create_by_name(attrs)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lazy_model_const-0.1.1 lib/lazy_model_const.rb