Sha256: 7193b3b4ab75a4bcd321faa6cfcd67ad99127df8dfa15def8b7dc67d4533bbc4

Contents?: true

Size: 429 Bytes

Versions: 11

Compression:

Stored size: 429 Bytes

Contents

class DispatchLink < ActiveRecord::Base
  # Relationships
  belongs_to :dispatch, :foreign_key => :dispatch_id
  has_many :clicks, :class_name => "DispatchLinkClick"
  default_scope { order("clicks_count DESC") }
  
  # Validations
  # validates_presence_of :uri
  # validates_presence_of :dispatch
  # validates_uniqueness_of :position, :scope => :dispatch_id
  
  # open up everything for mass assignment
  attr_protected

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/app/models/dispatch_link.rb
forge-cli-0.1.9 lib/forge/app/models/dispatch_link.rb
forge-cli-0.1.8 lib/forge/app/models/dispatch_link.rb
forge-cli-0.1.7 lib/forge/app/models/dispatch_link.rb
forge-cli-0.1.6 lib/forge/app/models/dispatch_link.rb
forge-cli-0.1.5 lib/forge/app/models/dispatch_link.rb
forge-cli-0.1.4 lib/forge/app/models/dispatch_link.rb
forge-cli-0.1.3 lib/forge/app/models/dispatch_link.rb
forge-cli-0.1.2 lib/forge/app/models/dispatch_link.rb
forge-cli-0.1.1 lib/forge/app/models/dispatch_link.rb
forge-cli-0.1.0 lib/forge/app/models/dispatch_link.rb