app/controllers/cms/fortress/admin_controller.rb in cms-fortress-1.1.8 vs app/controllers/cms/fortress/admin_controller.rb in cms-fortress-1.2.0

- old
+ new

@@ -1,30 +1,30 @@ module Cms module Fortress - class AdminController < Admin::Cms::BaseController + class AdminController < Comfy::Admin::Cms::BaseController def roles @roles = Role.all end def images - @files = Cms::File.images + @files = Comfy::Cms::File.images respond_to do |format| format.html { render partial: 'cms/fortress/shared/media_items', locals: {media: @files, type: :image} } format.json { render json: @files } end end def videos - @files = Cms::File.videos + @files = Comfy::Cms::File.videos respond_to do |format| format.html { render partial: 'cms/fortress/shared/media_items', locals: {media: @files, type: :video} } format.json { render json: @files } end end def other_files - @files = Cms::File.others.map {|f| {title: f.label, value: f.file.url}} + @files = Comfy::Cms::File.others.map {|f| {title: f.label, value: f.file.url}} respond_to do |format| format.html { render partial: 'cms/fortress/shared/media_items', locals: {media: @files, type: :others} } format.json { render json: @files } end end