Sha256: 2d496e2c7daf335bd07cd58da5bd89384479c77eb76c1f95f984859c33d3d9e5

Contents?: true

Size: 351 Bytes

Versions: 33

Compression:

Stored size: 351 Bytes

Contents

class NewsFilter < ActiveRecord::Base

    # Having additional attributes on the join table of a has_and_belongs_to_many association is deprecated and will be removed in Rails 3.1. Please use a has_many :through association instead
    has_and_belongs_to_many :articles, :join_table => "articles_news_filters", :order => 'published_at DESC'
    
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
sports_db-0.2.19 app/models/news_filter.rb
sports_db-0.2.18 app/models/news_filter.rb
sports_db-0.2.17 app/models/news_filter.rb
sports_db-0.2.16 app/models/news_filter.rb
sports_db-0.2.15 app/models/news_filter.rb
sports_db-0.2.14 app/models/news_filter.rb
sports_db-0.2.13 app/models/news_filter.rb
sports_db-0.2.12 app/models/news_filter.rb
sports_db-0.2.11 app/models/news_filter.rb
sports_db-0.2.10 app/models/news_filter.rb
sports_db-0.2.9 app/models/news_filter.rb
sports_db-0.2.8 app/models/news_filter.rb
sports_db-0.2.7 app/models/news_filter.rb
sports_db-0.2.6 app/models/news_filter.rb
sports_db-0.2.5 app/models/news_filter.rb
sports_db-0.2.4 app/models/news_filter.rb
sports_db-0.2.3 app/models/news_filter.rb
sports_db-0.2.2 app/models/news_filter.rb
sports_db-0.2.1 app/models/news_filter.rb
sports_db-0.2 app/models/news_filter.rb