app/controllers/knitkit/base_controller.rb in knitkit-2.1.15 vs app/controllers/knitkit/base_controller.rb in knitkit-3.0.0
- old
+ new
@@ -39,10 +39,10 @@
elsif current_user and !current_user.has_capability?(:view, @website_section)
redirect_to Knitkit::Config.unauthorized_url
end
end
else
- raise "No Id set"
+ raise ActionController::RoutingError.new('Not Found')
end
end
def set_login_path
@login_path = @website.configurations.first.get_configuration_item(ConfigurationItemType.find_by_internal_identifier('login_url')).options.first.value