app/helpers/cms/fortress/application_helper.rb in cms-fortress-1.3.5 vs app/helpers/cms/fortress/application_helper.rb in cms-fortress-1.3.6
- old
+ new
@@ -72,11 +72,11 @@
if type.eql?(:image)
cms_fortress_files_images_path
elsif type.eql?(:video)
cms_fortress_files_videos_path
else
- cms_fortress_files_others_url(format: :json)
+ cms_fortress_files_others_path(format: :json)
end
end
end
def image_item(m)
@@ -120,10 +120,10 @@
Cms::Fortress.configuration.content_resources.
map { |resource| resource[:name] }.
include?(controller_name)
end
- def settings
- Cms::Fortress::Settings.new(:global_settings)
+ def settings(type = :global_settings)
+ Cms::Fortress::Settings.new(type)
end
end