Fixed: NoMethodError
This commit is contained in:
parent
f814506c6f
commit
9101f68bab
|
@ -67,6 +67,7 @@ class Repository < ActiveRecord::Base
|
||||||
protected
|
protected
|
||||||
|
|
||||||
def detele_directory
|
def detele_directory
|
||||||
|
return unless platform
|
||||||
repository_path = platform.path << '/repository'
|
repository_path = platform.path << '/repository'
|
||||||
if platform.personal?
|
if platform.personal?
|
||||||
Platform.main.pluck(:name).each do |main_platform_name|
|
Platform.main.pluck(:name).each do |main_platform_name|
|
||||||
|
|
Loading…
Reference in New Issue