Project

General

Profile

« Previous | Next » 

Revision 890e765e

Added by Daniel Lobato Garcia almost 9 years ago

Fixes #11078 - Substitute find_all_by by where to comply with Rails 4

This commit takes away all instances up to this point of find_all_by to
improve Rails 4 compatibility. They are substituted by .where calls.

View differences:

app/controllers/permissions_controller.rb
def index
type = params[:resource_type].blank? ? nil : params[:resource_type]
@permissions = Permission.find_all_by_resource_type(type)
@permissions = Permission.where(:resource_type => type)
@search_path = search_path(type)
@granular = granular?(type)

Also available in: Unified diff