mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-29 12:12:57 -04:00
Add aliases (#4232)
This commit is contained in:
@@ -30,4 +30,12 @@ class Activity < ApplicationRecord
|
||||
def to_s
|
||||
name
|
||||
end
|
||||
|
||||
def garden_name
|
||||
garden&.name
|
||||
end
|
||||
|
||||
def planting_name
|
||||
planting&.name
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user