Add homepage admin section

This commit is contained in:
rgarcia
2018-05-22 19:52:35 +02:00
committed by decabeza
parent 06772a7b87
commit 85c08da7a6
10 changed files with 57 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
class Admin::HomepageController < Admin::BaseController
def show
end
private
def load_settings
settings = /feature.homepage.widgets/
@settings = Setting.select {|setting| setting.key =~ /#{settings}/ }
end
end