Sha256: e3c68cf7b8f7aa9111723db3b02e968bb24d7fcabff289e085a1201352163f0b

Contents?: true

Size: 422 Bytes

Versions: 13

Compression:

Stored size: 422 Bytes

Contents

module C80NewsTz
  class Gallery < ActiveRecord::Base
    belongs_to :company
    belongs_to :notice
    has_many :gphotos, :dependent => :destroy
    accepts_nested_attributes_for :gphotos,
                                  :reject_if => lambda { |attributes|
                                    !attributes.present?
                                  },
                                  :allow_destroy => true
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
c80_news_tz-0.1.1.26 app/models/c80_news_tz/gallery.rb
c80_news_tz-0.1.1.25 app/models/c80_news_tz/gallery.rb
c80_news_tz-0.1.1.24 app/models/c80_news_tz/gallery.rb
c80_news_tz-0.1.1.23 app/models/c80_news_tz/gallery.rb
c80_news_tz-0.1.1.22 app/models/c80_news_tz/gallery.rb
c80_news_tz-0.1.1.21 app/models/c80_news_tz/gallery.rb
c80_news_tz-0.1.1.19 app/models/c80_news_tz/gallery.rb
c80_news_tz-0.1.1.18 app/models/c80_news_tz/gallery.rb
c80_news_tz-0.1.1.17 app/models/c80_news_tz/gallery.rb
c80_news_tz-0.1.1.16 app/models/c80_news_tz/gallery.rb
c80_news_tz-0.1.1.15 app/models/c80_news_tz/gallery.rb
c80_news_tz-0.1.1.1 app/models/c80_news_tz/gallery.rb
c80_news_tz-0.1.1.0 app/models/c80_news_tz/gallery.rb