app/controllers/decidim/admin/scopes_controller.rb in decidim-admin-0.6.8 vs app/controllers/decidim/admin/scopes_controller.rb in decidim-admin-0.7.0

- old
+ new

@@ -71,15 +71,15 @@ current_organization.scopes end def parent_scope return @parent_scope if defined?(@parent_scope) - @parent_scope = scope ? scope.parent : organization_scopes.find_by_id(params[:scope_id]) + @parent_scope = scope ? scope.parent : organization_scopes.find_by(id: params[:scope_id]) end def scope return @scope if defined?(@scope) - @scope = organization_scopes.find_by_id(params[:id]) + @scope = organization_scopes.find_by(id: params[:id]) end def children_scopes @subscopes ||= parent_scope ? parent_scope.children : organization_scopes.top_level end