Sha256: f2959d7a824446d55b2c2a4aa0b0322770b1a9ee5004aa8269b64799f09814a5

Contents?: true

Size: 228 Bytes

Versions: 1

Compression:

Stored size: 228 Bytes

Contents

class Party < ActiveRecord::Base
  has_many :periods, :order => :position, :dependent => :destroy
  
  def to_sym
    self.class.name.downcase.to_sym
  end
  
  def controller
    self.class.name.downcase.pluralize
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
backlog-0.2.1 app/models/party.rb