Sha256: 9e381384c8f66bfaac424111b46806608fa163984f52b8ae7f6f8513124e5743

Contents?: true

Size: 609 Bytes

Versions: 1

Compression:

Stored size: 609 Bytes

Contents

module C80Swiper
  class Swslider < ActiveRecord::Base

    has_many :sframes, :dependent => :destroy
    accepts_nested_attributes_for :sframes,
                                  :reject_if => lambda { |attributes|
                                    !attributes.present?
                                  },
                                  :allow_destroy => true

    # has_and_belongs_to_many :swprops
    # выдать список тех Примеров, которые должны выводиться в виджете
    # def self.all_widgeted
    #   self.joins(:csprops)
    # end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
c80_swiper-0.1.0 app/models/c80_swiper/swslider.rb