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.3.0 app/models/party.rb
backlog-0.3.2 app/models/party.rb
backlog-0.3.3 app/models/party.rb
backlog-0.3.1 app/models/party.rb
backlog-0.3.4 app/models/party.rb
backlog-0.3.5 app/models/party.rb
backlog-0.3.6 app/models/party.rb
backlog-0.3.8 app/models/party.rb
backlog-0.3.7 app/models/party.rb
backlog-0.3.9 app/models/party.rb
backlog-0.4.0 app/models/party.rb
backlog-0.5.0 app/models/party.rb
backlog-0.5.1 app/models/party.rb
backlog-0.5.2 app/models/party.rb
backlog-0.5.10 app/models/party.rb
backlog-0.5.4 app/models/party.rb
backlog-0.5.3 app/models/party.rb
backlog-0.5.6 app/models/party.rb
backlog-0.5.5 app/models/party.rb
backlog-0.5.7 app/models/party.rb