Sha256: e434c68c91d97aa8037f55dbb57facf37ecf82e6d2a6e1c871b1a107fd98e1c1

Contents?: true

Size: 444 Bytes

Versions: 6

Compression:

Stored size: 444 Bytes

Contents

module C80NewsTz
  class Issue < ActiveRecord::Base
    has_and_belongs_to_many :facts, :join_table => 'c80_news_tz_facts_issues'
    has_many :pdfs, :dependent => :destroy
    accepts_nested_attributes_for :pdfs,
                                  :reject_if => lambda { |attributes|
                                    !attributes.present?
                                  },
                                  :allow_destroy => true
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
c80_news_tz-0.1.1.18 app/models/c80_news_tz/issue.rb
c80_news_tz-0.1.1.17 app/models/c80_news_tz/issue.rb
c80_news_tz-0.1.1.16 app/models/c80_news_tz/issue.rb
c80_news_tz-0.1.1.15 app/models/c80_news_tz/issue.rb
c80_news_tz-0.1.1.1 app/models/c80_news_tz/issue.rb
c80_news_tz-0.1.1.0 app/models/c80_news_tz/issue.rb