mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-12 01:36:26 -04:00
Add aliases
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