Class: Issue
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- Issue
- Includes:
- Gravtastic
- Defined in:
- app/models/issue.rb
Defined Under Namespace
Classes: Comment
Instance Method Summary collapse
Instance Method Details
#contact ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'app/models/issue.rb', line 15 def contact @contact ||= begin if !contact_id.nil? super else nil end end end |
#to_param ⇒ Object
11 12 13 |
# File 'app/models/issue.rb', line 11 def to_param "#{slug}-#{id}" end |
#user_email ⇒ Object
33 34 35 36 37 38 39 |
# File 'app/models/issue.rb', line 33 def user_email if contact_id.present? contact.email else super end end |
#user_name ⇒ Object
25 26 27 28 29 30 31 |
# File 'app/models/issue.rb', line 25 def user_name if contact_id.present? contact.username else super end end |