Sha256: 4517bf65821801c3e16d0971ce63a469a158b9b29242a1d2c3107ac9e51715f1

Contents?: true

Size: 495 Bytes

Versions: 4

Compression:

Stored size: 495 Bytes

Contents

module BlogBasic
  class BlogImage < ActiveRecord::Base	
    unloadable

    belongs_to :blog_post

    attr_accessor :random_id

    # Check for paperclip
    if self.respond_to?(:has_attached_file)
      has_attached_file(:image, {
        :styles => {
        :original => '1000x1000>',
        :large    => '600x600>',
        :medium   => '300x300>',
        :small    => '100x100>',
        :thumb    => '30x30>'
      }
      }.merge(BlogConf.data['paperclip'] || {}))
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
blog_basic-0.1.14 app/models/blog_basic/blog_image.rb
blog_basic-0.1.13 app/models/blog_basic/blog_image.rb
blog_basic-0.1.9 app/models/blog_basic/blog_image.rb
blog_basic-0.1.6 app/models/blog_basic/blog_image.rb