Sha256: a8dd3519b3a397e94ad9df0c3df4eacd1dfd36966a84cc89c18dff2272afe116

Contents?: true

Size: 652 Bytes

Versions: 1

Compression:

Stored size: 652 Bytes

Contents

# not used maybe???
#
class Mercury::Image < ActiveRecord::Base
 

  #self.table_name = :mercury_images

  #has_attached_file :image, :styles => { :medium => "300x300>", :large=>"600x600>", :thumb => "100x100>" }
  attr_accessible :image

  has_attached_file :image, :styles => { :medium => "300x300>", :thumb => "100x100>" },
        :path => ":rails_root/public/system/:attachment/:id/:style/:filename",
        :url => "/system/:attachment/:id/:style/:filename"

  #delegate :url, :to => :image

  #def serializable_hash(options = nil)
  #  options ||= {}
  #  options[:methods] ||= []
  #  options[:methods] << :url
  #  super(options)
  #end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kiteditor-1.0.12 lib/generators/mercury/install/images/templates/ar_paperclip_image.rb