mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-27 01:08:30 -04:00
Brakeman
This commit is contained in:
1 parent
bf500c5a3b
commit
edbd2c45f4
1 file changed
+2
@@ -9,6 +9,8 @@ class PlantPart < ApplicationRecord
|
||||
|
||||
validates :name, presence: true, uniqueness: true
|
||||
|
||||
attr_accessible :name, :slug, :harvests_count
|
||||
|
||||
scope :joins_members, -> { joins("INNER JOIN members ON members.id = harvests.owner_id") }
|
||||
|
||||
def to_s
|
||||
|
||||
Reference in new issue
Block a user