Compare commits

...

2 commits

Author SHA1 Message Date
f 4d6c69be51 detectar si hay un logo
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-06-11 14:24:59 -03:00
f 430be2c223 fixup! fixup! crear el sitio si no existe 2022-06-11 14:22:49 -03:00
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -1,5 +1,5 @@
- if (site = Site.first)
- if site.logo
- if site.logo.attached?
= image_tag url_for(site.logo)
%h1= site.title