cms base controller and namespace
This commit is contained in:
6
app/controllers/cms/cms_controller.rb
Normal file
6
app/controllers/cms/cms_controller.rb
Normal file
@ -0,0 +1,6 @@
|
||||
module Cms
|
||||
class CmsController < ApplicationController
|
||||
layout 'cms_layout'
|
||||
|
||||
end
|
||||
end
|
@ -1,6 +1,6 @@
|
||||
module Cms
|
||||
|
||||
class ImageController < ApplicationController
|
||||
class ImageController < CmsController
|
||||
|
||||
@@root = "app/assets/images/cms/"
|
||||
@@files = Set.new Dir.new(Rails.root + @@root).children
|
||||
|
Reference in New Issue
Block a user