app/operations/entities/calculate_authorizing.rb
# Generate an infix to possibly fit between {PREFIX} and {SUFFIX}.
#
# @param [String] auth_path
# @param [Boolean] stale
# @return [String]
Generate an infix to possibly fit between {PREFIX} and {SUFFIX}.
Generate an infix to possibly fit between { PREFIX } and { SUFFIX } .
def generate_infix_for(auth_path: nil, stale: true)
      if auth_path.present?
        with_sql_template(<<~SQL.squish, path: connection.quote(auth_path))
        WHERE ent.auth_path @> %<path>s OR ent.auth_path <@ %<path>s
        SQL
      elsif stale
        with_sql_template <<~SQL
        WHERE ent.stale
        SQL
      else
        ""
      end
    end
def generate_infix_for ( auth_path : nil , stale : true ) if auth_path . present? with_sql_template ( <<~SQL . squish , path : connection . quote ( auth_path ) ) 
        WHERE ent.auth_path @> %<path>s OR ent.auth_path <@ %<path>s
         SQL elsif stale with_sql_template <<~SQL 
        WHERE ent.stale
         SQL else "" end end
Generate an infix to possibly fit between {PREFIX} and {SUFFIX}.
Generate an infix to possibly fit between { PREFIX } and { SUFFIX } .
None
String
auth_path
stale
None