fixup! fixup! crear el sitio si no existe
This commit is contained in:
parent
b3c94af2e8
commit
430be2c223
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class SitesController < ApplicationController
|
|||
private
|
||||
|
||||
def site
|
||||
@site ||= Site.first || Site.new
|
||||
@site ||= Site.first || Site.create(title: 'Ectomobile')
|
||||
end
|
||||
|
||||
def site_params
|
||||
|
|
Loading…
Reference in a new issue