app/controllers/admin/resources_controller.rb in refinerycms-resources-0.9.9.21 vs app/controllers/admin/resources_controller.rb in refinerycms-resources-0.9.9.22
- old
+ new
@@ -8,11 +8,11 @@
before_filter :init_dialog
def new
@resource = Resource.new if @resource.nil?
- @url_override = admin_resources_url(:dialog => from_dialog?)
+ @url_override = admin_resources_path(:dialog => from_dialog?)
end
def create
@resources = Resource.create_resources(params[:resource])
@resource = @resources.detect { |r| !r.valid? }
@@ -42,10 +42,10 @@
end
def insert
self.new if @resource.nil?
- @url_override = admin_resources_url(request.query_parameters.merge(:insert => true))
+ @url_override = admin_resources_path(request.query_parameters.merge(:insert => true))
if params[:conditions].present?
extra_condition = params[:conditions].split(',')
extra_condition[1] = true if extra_condition[1] == "true"