Sha256: e4af6b426559125377d1d53b2b4ff8123e374d90597764fe9c72ab1d7ad39cba

Contents?: true

Size: 273 Bytes

Versions: 39

Compression:

Stored size: 273 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
  
  def icon
    to_sym.to_s + '.png'
  end
  
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
backlog-0.5.9 app/models/party.rb
backlog-0.5.8 app/models/party.rb
backlog-0.6.1 app/models/party.rb
backlog-0.6.2 app/models/party.rb
backlog-0.6.0 app/models/party.rb
backlog-0.6.3 app/models/party.rb
backlog-0.6.4 app/models/party.rb
backlog-0.6.5 app/models/party.rb
backlog-0.6.6 app/models/party.rb
backlog-0.7.0 app/models/party.rb
backlog-0.7.1 app/models/party.rb
backlog-0.7.2 app/models/party.rb
backlog-0.7.3 app/models/party.rb
backlog-0.7.5 app/models/party.rb
backlog-0.7.4 app/models/party.rb
backlog-0.7.6 app/models/party.rb
backlog-0.7.7 app/models/party.rb
backlog-0.7.8 app/models/party.rb
backlog-0.7.9 app/models/party.rb