Sha256: 52a6642a23685798fff20f145cbf457399908b919ca293976cb76ec278296dc9
Contents?: true
Size: 576 Bytes
Versions: 1
Compression:
Stored size: 576 Bytes
Contents
module Imagine case Imagine.orm.to_sym when :active_record class Image < ActiveRecord::Base include Imagine::ModelExtensions::Image set_table_name :imagine_images end when :mongoid class Image include Mongoid::Document include Mongoid::Timestamps include Imagine::ModelExtensions::Image store_in :imagine_images field :file_name, :type => String field :file_uid, :type => String end else raise Imagine::OrmNotSupportedError.new("#{Imagine.orm}, though we do accept nice pull requests :)") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
imagine-0.3.0 | app/models/imagine/image.rb |