This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Presenter < ActiveRecord::Base | |
| attr_accessible :name | |
| has_many :reports | |
| belongs_to :team | |
| def team_name | |
| team.compound_team_name | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Presenter < ActiveRecord::Base | |
| attr_accessible :name | |
| has_many :reports | |
| belongs_to :team | |
| def team_name | |
| team.compound_team_name | |
| end | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Team < ActiveRecord::Base | |
| attr_accessible :name | |
| has_many :presenters | |
| end | |
| class Presenter < ActiveRecord::Base | |
| attr_accessible :name | |
| has_many :reports | |
| belongs_to :team |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Team < ActiveRecord::Base | |
| attr_accessible :name | |
| has_many :presenters | |
| def compound_team_name | |
| name + '_' + department.id | |
| end | |
| end |
NewerOlder