lib/enju_leaf.rb in enju_leaf-1.1.0.rc3 vs lib/enju_leaf.rb in enju_leaf-1.1.0.rc4

- old
+ new

@@ -164,11 +164,11 @@ # 内部的なクエリ set_role_query(current_user, search) unless params[:mode] == "add" expression = @expression - patron = @patron + agent = @agent manifestation = @manifestation reservable = @reservable carrier_type = params[:carrier_type] library = params[:library] language = params[:language] @@ -177,10 +177,10 @@ subject_by_term = Subject.where(:term => params[:subject]).first @subject_by_term = subject_by_term end search.build do - with(:publisher_ids).equal_to patron.id if patron + with(:publisher_ids).equal_to agent.id if agent with(:original_manifestation_ids).equal_to manifestation.id if manifestation with(:reservable).equal_to reservable unless reservable.nil? unless carrier_type.blank? with(:carrier_type).equal_to carrier_type end