mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-03-29 12:12:57 -04:00
Update buttons_helper.rb
This commit is contained in:
@@ -89,7 +89,7 @@ module ButtonsHelper
|
||||
end
|
||||
|
||||
def planting_harvest_button(planting, classes: 'btn btn-default')
|
||||
return unless planting.active? && can?(:create, Harvest) && can?(:edit, planting)
|
||||
return unless planting.active && can?(:create, Harvest) && can?(:edit, planting)
|
||||
|
||||
link_to new_planting_harvest_path(planting), class: classes do
|
||||
harvest_icon + ' ' + t('buttons.record_harvest')
|
||||
|
||||
Reference in New Issue
Block a user