Project

General

Profile

« Previous | Next » 

Revision fb31c426

Added by Dominic Cleal over 6 years ago

Fixes #20956 - Don't pass class constants to AR conditions

View differences:

app/controllers/templates_controller.rb
return unless @template
@history = Audit.descending
.where(:auditable_id => @template.id,
:auditable_type => @template.class.base_class.to_s,
:auditable_type => @template.class.base_class.name,
:action => 'update')
.select { |audit| audit_template? audit }
end

Also available in: Unified diff