Sha256: e1f17ebe8e552fc2728a9a1908a1f76fae60ad920dd8aa104bed7d6db7e86ff8
Contents?: true
Size: 755 Bytes
Versions: 2
Compression:
Stored size: 755 Bytes
Contents
module C80Swiper class Sframe < ActiveRecord::Base belongs_to :swslider has_many :fcaptions, :dependent => :destroy accepts_nested_attributes_for :fcaptions, :reject_if => lambda { |attributes| !attributes.present? }, :allow_destroy => true mount_uploader :image, SframeUploader validates_presence_of :image scope :def_order, -> { order(:ord => :asc) } # def csphoto_img # self.csphoto.present? ? MiniMagick::Image.open(self.csphoto.path):nil # [img["width"],img["height"]] # end # def image_url # http://lorempixel.com/600/600/nature/1 # end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
c80_swiper-0.1.0.1 | app/models/c80_swiper/sframe.rb |
c80_swiper-0.1.0 | app/models/c80_swiper/sframe.rb |