diff --git a/app/models/my_module.rb b/app/models/my_module.rb index aa98cee91..5848a35af 100644 --- a/app/models/my_module.rb +++ b/app/models/my_module.rb @@ -33,7 +33,7 @@ class MyModule < ActiveRecord::Base has_many :report_elements, inverse_of: :my_module, :dependent => :destroy has_many :protocols, inverse_of: :my_module, dependent: :destroy - scope :is_archived, ->(is_archived) { where("archived = ?", is_archived) } + scope :is_archived, ->(is_archived) { where('archived = ?', is_archived) } def self.search(user, include_archived, query = nil, page = 1) exp_ids =