Add homepage admin section
This commit is contained in:
12
app/controllers/admin/homepage_controller.rb
Normal file
12
app/controllers/admin/homepage_controller.rb
Normal 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
|
||||
Reference in New Issue
Block a user